diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-26 19:51:58 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-26 19:51:58 +0000 |
commit | 0a8e053db684bbd662d65f355f65fe33efe5d632 (patch) | |
tree | ce08a9b73acb958ca7a21a723e4b7538d2166fb2 /pbx.c | |
parent | bc933909a4e9bce170c88c7be114fbdfe1a00f4f (diff) |
one more oops (when global variables need substitutions)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6666 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |