[Asterisk-cvs] asterisk/pbx pbx_spool.c,1.32,1.32.2.1
russell
russell
Sun Nov 20 19:14:23 CST 2005
Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv18590/pbx
Modified Files:
Tag: v1-2
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.32.2.1
diff -u -d -r1.32 -r1.32.2.1
--- pbx_spool.c 24 Oct 2005 20:12:06 -0000 1.32
+++ pbx_spool.c 21 Nov 2005 00:03:40 -0000 1.32.2.1
@@ -202,10 +202,14 @@
} 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 Set: argument! Should be Set: Variable=value\n");
}
} else if (!strcasecmp(buf, "account")) {
var = ast_variable_new("CDR(accountcode|r)", c);
More information about the svn-commits
mailing list