ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/config.c
(Generate patch)

Comparing hopm/trunk/src/config.c (file contents):
Revision 5270 by michael, Thu Jan 1 19:49:22 2015 UTC vs.
Revision 5274 by michael, Thu Jan 1 20:00:33 2015 UTC

# Line 52 | Line 52 | void
52   config_init(void)
53   {
54    /* Init IRC block */
55 <  IRCItem = MyMalloc(sizeof *IRCItem);
55 >  IRCItem = xcalloc(sizeof *IRCItem);
56    IRCItem->channels = list_create();
57    IRCItem->performs = list_create();
58  
59    /* Init Options block */
60 <  OptionsItem = MyMalloc(sizeof *OptionsItem);
60 >  OptionsItem = xcalloc(sizeof *OptionsItem);
61  
62    /* Init OPM block */
63 <  OpmItem = MyMalloc(sizeof *OpmItem);
63 >  OpmItem = xcalloc(sizeof *OpmItem);
64    OpmItem->blacklists = list_create();
65  
66    /* Init list of User blocks */
# Line 70 | Line 70 | config_init(void)
70    ScannerItemList = list_create();
71  
72    /* Init list of Exempts */
73 <  ExemptItem = MyMalloc(sizeof *ExemptItem);
73 >  ExemptItem = xcalloc(sizeof *ExemptItem);
74    ExemptItem->masks = list_create();
75   }
76  

Diff Legend

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