From: Kevin P. Fleming Date: Mon, 26 Sep 2005 19:51:58 +0000 (+0000) Subject: one more oops (when global variables need substitutions) X-Git-Tag: 1.2.0-beta2~253 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02c80ab20b4ba5787ac4212b77d340dbcbb9a7dc;p=thirdparty%2Fasterisk.git one more oops (when global variables need substitutions) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6666 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index 6f56cfe582..bdc9e67426 100755 --- a/pbx.c +++ b/pbx.c @@ -1557,7 +1557,7 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v void pbx_substitute_variables_helper(struct ast_channel *c, const char *cp1, char *cp2, int count) { - pbx_substitute_variables_helper_full(c, &c->varshead, cp1, cp2, count); + pbx_substitute_variables_helper_full(c, (c) ? &c->varshead : NULL, cp1, cp2, count); } void pbx_substitute_variables_varshead(struct varshead *headp, const char *cp1, char *cp2, int count)