diff options
author | BJ Weschke <bweschke@btwtech.com> | 2006-01-13 03:34:31 +0000 |
---|---|---|
committer | BJ Weschke <bweschke@btwtech.com> | 2006-01-13 03:34:31 +0000 |
commit | f6c5e6526689ee0820e3e2495774525691710d65 (patch) | |
tree | 4c1811d4204404d6e76227a772b535cb8ad0c154 /apps/app_page.c | |
parent | 8637b23569d357bcdc155259642ebc979612806e (diff) |
More memory wrapper cleanup. #6224
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_page.c')
-rw-r--r-- | apps/app_page.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_page.c b/apps/app_page.c index da5f19467..4dd9f2015 100644 --- a/apps/app_page.c +++ b/apps/app_page.c @@ -43,7 +43,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/file.h" #include "asterisk/app.h" #include "asterisk/chanvars.h" - +#include "asterisk/utils.h" static const char *tdesc = "Page Multiple Phones"; @@ -100,8 +100,7 @@ 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 = ast_calloc(1, sizeof(*cd)); - if (cd) { + if ((cd = ast_calloc(1, sizeof(*cd)))) { 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)); |