aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-13 17:40:21 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-13 17:40:21 +0000
commit56515f9c73acc072ec1aa14543947489b20993a9 (patch)
treed7aa24d23e44cb086359951fac0eb0acdbc9ccf0 /apps
parent1000dfb3dbcd28d170805feeec74881c79ac8438 (diff)
oops... let's not set a variable and then immediately overwrite it while assuming its old value will magically return
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@19812 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_page.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_page.c b/apps/app_page.c
index 6898bfa27..bd050d183 100644
--- a/apps/app_page.c
+++ b/apps/app_page.c
@@ -171,16 +171,16 @@ static int page_exec(struct ast_channel *chan, void *data)
return -1;
}
+ ast_copy_string(originator, chan->name, sizeof(originator));
+ if ((tmp = strchr(originator, '-')))
+ *tmp = '\0';
+
tmp = strsep(&options, "|");
if (options)
ast_app_parse_options(page_opts, &flags, NULL, options);
snprintf(meetmeopts, sizeof(meetmeopts), "%ud|%sqxdw", confid, ast_test_flag(&flags, PAGE_DUPLEX) ? "" : "m");
- ast_copy_string(originator, chan->name, sizeof(originator));
- if ((tmp = strchr(originator, '-')))
- *tmp = '\0';
-
while ((tech = strsep(&tmp, "&"))) {
/* don't call the originating device */
if (!strcasecmp(tech, originator))