| # | Line 439 | Line 439 | check_server(const char *name, struct Cl | |
|---|---|---|
| 439 | void | |
| 440 | add_capability(const char *capab_name, int cap_flag, int add_to_default) | |
| 441 | { | |
| 442 | < | struct Capability *cap = MyMalloc(sizeof(*cap)); |
| 442 | > | struct Capability *cap = MyCalloc(sizeof(*cap)); |
| 443 | ||
| 444 | cap->name = xstrdup(capab_name); | |
| 445 | cap->cap = cap_flag; | |
| # | Line 573 | Line 573 | struct Server * | |
| 573 | make_server(struct Client *client_p) | |
| 574 | { | |
| 575 | if (client_p->serv == NULL) | |
| 576 | < | client_p->serv = MyMalloc(sizeof(struct Server)); |
| 576 | > | client_p->serv = MyCalloc(sizeof(struct Server)); |
| 577 | ||
| 578 | return client_p->serv; | |
| 579 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |