aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-21 21:05:56 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-21 21:05:56 +0000
commit9ac0a45bff50a5c8a26e71503ad19488cf942dce (patch)
treeb59a26a6512663badc21bd0b75a694664589849d /main
parent87d0f205a4b73f54e9a261d8014c344798353b44 (diff)
Make sure we initialize the ast_ha structure with ast_calloc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242043 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/acl.c b/main/acl.c
index 5ee6ef0fb..e272ef818 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_malloc(sizeof(*new_ha)))) {
+ if ((new_ha = ast_calloc(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_malloc(sizeof(*ha)))) {
+ if (!(ha = ast_calloc(sizeof(*ha)))) {
return ret;
}