ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/server.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/server.c (file contents):
Revision 3452 by michael, Thu May 1 19:20:08 2014 UTC vs.
Revision 3505 by michael, Sat May 10 19:51:42 2014 UTC

# 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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)