Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv22228

Modified Files:
        pbx.c 
Log Message:
one more oops (when global variables need substitutions)


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.280
retrieving revision 1.281
diff -u -d -r1.280 -r1.281
--- pbx.c       26 Sep 2005 19:31:03 -0000      1.280
+++ pbx.c       26 Sep 2005 19:51:58 -0000      1.281
@@ -1557,7 +1557,7 @@
 
 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)

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to