summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index 38a2865b1..5e06c2b70 100755
--- a/pbx.c
+++ b/pbx.c
@@ -786,7 +786,7 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var,
ast_shrink_phone_number(num);
*ret = num;
} else
- *ret = "";
+ *ret = workspace;
} else if (!strcmp(var, "CALLERIDNAME")) {
if (c->callerid)
strncpy(workspace, c->callerid, workspacelen - 1);
@@ -794,7 +794,7 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var,
if (name)
*ret = name;
else
- *ret = "";
+ *ret = workspace;
} else if (!strcmp(var, "CALLERID")) {
if (c->callerid) {
strncpy(workspace, c->callerid, workspacelen - 1);