diff th_config.c @ 125:0ac59c798773

Use th_malloc0() where appropriate.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 22 Jun 2014 03:34:00 +0300
parents d739df7efba7
children aa2d608fb3f3
line wrap: on
line diff
--- a/th_config.c	Sun Jun 22 02:49:17 2014 +0300
+++ b/th_config.c	Sun Jun 22 03:34:00 2014 +0300
@@ -45,7 +45,7 @@
         return NULL;
 
     /* Allocate new item */
-    node = (th_cfgitem_t *) th_calloc(1, sizeof(th_cfgitem_t));
+    node = (th_cfgitem_t *) th_malloc0(sizeof(th_cfgitem_t));
     if (node == NULL)
         return NULL;