Check to see if arg is NULL before passing (#6094)
authorMatthew Fredrickson <creslin@digium.com>
Tue, 17 Jan 2006 18:20:33 +0000 (18:20 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Tue, 17 Jan 2006 18:20:33 +0000 (18:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8133 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_features.c

index 1ffa1ae..0f8f5d5 100644 (file)
@@ -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);