Add missing argument to ast_calloc calls.
[asterisk/asterisk.git] / main / acl.c
index e272ef8..3c01fb6 100644 (file)
@@ -237,7 +237,7 @@ static struct ast_ha *ast_duplicate_ha(struct ast_ha *original)
 {
        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 @@ struct ast_ha *ast_append_ha(const char *sense, const char *stuff, struct ast_ha
                path = path->next;
        }
 
-       if (!(ha = ast_calloc(sizeof(*ha)))) {
+       if (!(ha = ast_calloc(1, sizeof(*ha)))) {
                return ret;
        }