From c8c4ea9bf4717a2a916722b902adceacf15eae6b Mon Sep 17 00:00:00 2001
From: Mark Michelson <mmichelson@digium.com>
Date: Thu, 21 Jan 2010 22:37:55 +0000
Subject: [PATCH] Add missing argument to ast_calloc calls.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@242092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 main/acl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/acl.c b/main/acl.c
index e272ef8188..3c01fb65b6 100644
--- a/main/acl.c
+++ b/main/acl.c
@@ -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;
 	}
 
-- 
GitLab