projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7b0a5
)
Make sure we initialize the ast_ha structure with ast_calloc
author
Olle Johansson
<oej@edvina.net>
Thu, 21 Jan 2010 21:05:56 +0000
(21:05 +0000)
committer
Olle Johansson
<oej@edvina.net>
Thu, 21 Jan 2010 21:05:56 +0000
(21:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@242043
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/acl.c
patch
|
blob
|
history
diff --git
a/main/acl.c
b/main/acl.c
index
5ee6ef0
..
e272ef8
100644
(file)
--- 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;
}