summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorMatthew Fredrickson <creslin@digium.com>2006-01-17 18:20:33 +0000
committerMatthew Fredrickson <creslin@digium.com>2006-01-17 18:20:33 +0000
commit540175d9c7d3ff1057b8ead46f4a773b2e8d887c (patch)
tree21c72ed4cf0e75693254c5f5db3343290b608ff7 /res
parent859f1fa009e04b0689fcf9050c48e99e4dcaabf4 (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')
-rw-r--r--res/res_features.c2
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);