[Freeswitch-svn] [commit] r12264 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Tue Feb 24 11:58:45 PST 2009


Author: anthm
Date: Tue Feb 24 13:58:45 2009
New Revision: 12264

Log:
double doh

Modified:
   freeswitch/trunk/src/switch_ivr.c

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Tue Feb 24 13:58:45 2009
@@ -1547,12 +1547,14 @@
 SWITCH_DECLARE(void *) switch_ivr_digit_stream_parser_feed(switch_ivr_digit_stream_parser_t *parser, switch_ivr_digit_stream_t *stream, char digit)
 {
 	void *result = NULL;
-	switch_size_t len = strlen(stream->digits);
+	switch_size_t len;
 
 	switch_assert(parser);
 	switch_assert(stream);
 	switch_assert(stream->digits);
 
+	len = strlen(stream->digits);
+
 	/* handle new digit arrivals */
 	if (digit) {
 		/* if it's not a terminator digit, add it to the collected digits */



More information about the Freeswitch-svn mailing list