diff options
author | Matthew Fredrickson <creslin@digium.com> | 2006-01-17 18:20:33 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2006-01-17 18:20:33 +0000 |
commit | 540175d9c7d3ff1057b8ead46f4a773b2e8d887c (patch) | |
tree | 21c72ed4cf0e75693254c5f5db3343290b608ff7 /res/res_features.c | |
parent | 859f1fa009e04b0689fcf9050c48e99e4dcaabf4 (diff) |
Check to see if arg is NULL before passing (#6094)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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); |