From: Anthony Minessale Date: Tue, 24 Feb 2009 19:58:45 +0000 (+0000) Subject: double doh X-Git-Tag: v1.0.4~1841 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62a63cef2d032fbed70bd7c9d5ac6d6965dd9dbb;p=thirdparty%2Ffreeswitch.git double doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12264 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr.c b/src/switch_ivr.c index ccde21c019..a8721dcb89 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1547,12 +1547,14 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_digit_stream_parser_del_event(switch_ 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 */