[Asterisk-cvs] asterisk pbx.c,1.277,1.278
kpfleming
kpfleming
Sun Sep 25 23:05:09 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv16720
Modified Files:
pbx.c
Log Message:
minor optimizations
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.277
retrieving revision 1.278
diff -u -d -r1.277 -r1.278
--- pbx.c 24 Sep 2005 14:19:00 -0000 1.277
+++ pbx.c 26 Sep 2005 03:02:06 -0000 1.278
@@ -1559,9 +1559,8 @@
memset(passdata, 0, datalen);
/* No variables or expressions in e->data, so why scan it? */
- if (!strstr(e->data,"${") && !strstr(e->data,"$[") && !strstr(e->data,"$(")) {
+ if (!strchr(e->data, '$') && !strstr(e->data,"${") && !strstr(e->data,"$[") && !strstr(e->data,"$(")) {
ast_copy_string(passdata, e->data, datalen);
- passdata[datalen-1] = '\0';
return;
}
More information about the svn-commits
mailing list