aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index e1a2d2e87..05e3b2d45 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -516,7 +516,7 @@ int pbx_exec(struct ast_channel *c, /*!< Channel */
const char *saved_c_appl;
const char *saved_c_data;
- if (c->cdr && !ast_check_hangup(c))
+ if (c->cdr && !ast_check_hangup(c))
ast_cdr_setapp(c->cdr, app->name, data);
/* save channel values */
@@ -529,7 +529,7 @@ int pbx_exec(struct ast_channel *c, /*!< Channel */
if (app->module) {
/* XXX LOCAL_USER_ADD(app->module) */
}
- res = app->execute(c, data);
+ res = app->execute(c, S_OR(data, ""));
if (app->module) {
/* XXX LOCAL_USER_REMOVE(app->module) */
}