[Asterisk-cvs] asterisk/pbx pbx_spool.c,1.32,1.33
twisted
twisted
Sun Nov 20 02:10:21 CST 2005
Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv1310/pbx
Modified Files:
pbx_spool.c
Log Message:
issue #5806
Index: pbx_spool.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_spool.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- pbx_spool.c 24 Oct 2005 20:12:06 -0000 1.32
+++ pbx_spool.c 20 Nov 2005 06:59:42 -0000 1.33
@@ -202,11 +202,16 @@
} else if (!strcasecmp(buf, "setvar") || !strcasecmp(buf, "set")) {
c2 = c;
strsep(&c2, "=");
- var = ast_variable_new(c, c2);
- if (var) {
- var->next = o->vars;
- o->vars = var;
+ if (c2)
+ {
+ var = ast_variable_new(c, c2);
+ if (var) {
+ var->next = o->vars;
+ o->vars = var;
+ }
}
+ else
+ ast_log(LOG_WARNING, "Malformed \"%s\" argument. Should be \"%s: variable=value\"\n", buf, buf);
} else if (!strcasecmp(buf, "account")) {
var = ast_variable_new("CDR(accountcode|r)", c);
if (var) {
More information about the svn-commits
mailing list