[asterisk-commits] mmichelson: trunk r242092 - /trunk/main/acl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 21 16:37:59 CST 2010


Author: mmichelson
Date: Thu Jan 21 16:37:55 2010
New Revision: 242092

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242092
Log:
Add missing argument to ast_calloc calls.


Modified:
    trunk/main/acl.c

Modified: trunk/main/acl.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/acl.c?view=diff&rev=242092&r1=242091&r2=242092
==============================================================================
--- trunk/main/acl.c (original)
+++ trunk/main/acl.c Thu Jan 21 16:37:55 2010
@@ -237,7 +237,7 @@
 {
 	struct ast_ha *new_ha;
 
-	if ((new_ha = ast_calloc(sizeof(*new_ha)))) {
+	if ((new_ha = ast_calloc(1, sizeof(*new_ha)))) {
 		/* Copy from original to new object */
 		ast_copy_ha(original, new_ha);
 	}
@@ -284,7 +284,7 @@
 		path = path->next;
 	}
 
-	if (!(ha = ast_calloc(sizeof(*ha)))) {
+	if (!(ha = ast_calloc(1, sizeof(*ha)))) {
 		return ret;
 	}
 




More information about the asterisk-commits mailing list