aboutsummaryrefslogtreecommitdiffstats
path: root/main/acl.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-21 22:37:55 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-21 22:37:55 +0000
commit389a689eee0914b14f8f67a90c31afdf4cf517f5 (patch)
tree8f3eb17a4600ebaa6f5b599a6b75e60fbffa920f /main/acl.c
parent9ac0a45bff50a5c8a26e71503ad19488cf942dce (diff)
Add missing argument to ast_calloc calls.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242092 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/acl.c')
-rw-r--r--main/acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/acl.c b/main/acl.c
index e272ef818..3c01fb65b 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;
}