[Freeswitch-svn] [commit] r10142 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Fri Oct 24 15:25:08 EDT 2008
Author: anthm
Date: Fri Oct 24 15:25:07 2008
New Revision: 10142
Modified:
freeswitch/trunk/src/switch_ivr_originate.c
Log:
fix parser err
Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c (original)
+++ freeswitch/trunk/src/switch_ivr_originate.c Fri Oct 24 15:25:07 2008
@@ -917,12 +917,12 @@
end = switch_find_end_paren(p, '[', ']');
}
- if (end && p && *p == ',') {
+ if (end && p < end && *p == ',') {
*p = '|';
}
if (p == end) {
- e = NULL;
+ end = NULL;
}
p++;
@@ -954,6 +954,7 @@
} else {
vdata = NULL;
}
+ printf("WTF [%s][%s]\n", vdata, chan_type);
if ((chan_data = strchr(chan_type, '/')) != 0) {
*chan_data = '\0';
More information about the Freeswitch-svn
mailing list