diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-17 18:20:33 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-17 18:20:33 +0000 |
commit | 0e8e832997f9cdfeff136d2c3e9f7dccbd473776 (patch) | |
tree | 21c72ed4cf0e75693254c5f5db3343290b608ff7 /res/res_features.c | |
parent | 8f2721804ecbd12d1dc0e13bab445bdfcbfa09e8 (diff) |
Check to see if arg is NULL before passing (#6094)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8133 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rw-r--r-- | res/res_features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c index 1ffa1aef4..0f8f5d57c 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -1272,7 +1272,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast src = chan; else if ((monitor_exec = pbx_builtin_getvar_helper(peer, "AUTO_MONITOR"))) src = peer; - if (src) { + if (monitor_app && src) { char *tmp = ast_strdupa(monitor_exec); if (tmp) { pbx_exec(src, monitor_app, tmp, 1); |