aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_page.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-12 16:08:06 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-12 16:08:06 +0000
commitd6bead82264a99fbde0a30b0334d5391251ac139 (patch)
tree21f8ee3b9f7fc6bc080356a5027eab93eb1de1e1 /apps/app_page.c
parent1228be721e5731606e2e9553e63883774269a621 (diff)
More new memory wrapper work.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8012 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_page.c')
-rw-r--r--apps/app_page.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_page.c b/apps/app_page.c
index 7696a4cc5..da5f19467 100644
--- a/apps/app_page.c
+++ b/apps/app_page.c
@@ -100,9 +100,8 @@ static void launch_page(struct ast_channel *chan, const char *meetmeopts, const
struct ast_var_t *varptr;
pthread_t t;
pthread_attr_t attr;
- cd = malloc(sizeof(struct calloutdata));
+ cd = ast_calloc(1, sizeof(*cd));
if (cd) {
- memset(cd, 0, sizeof(struct calloutdata));
ast_copy_string(cd->cidnum, chan->cid.cid_num ? chan->cid.cid_num : "", sizeof(cd->cidnum));
ast_copy_string(cd->cidname, chan->cid.cid_name ? chan->cid.cid_name : "", sizeof(cd->cidname));
ast_copy_string(cd->tech, tech, sizeof(cd->tech));