From: Luigi Rizzo Date: Tue, 6 Mar 2007 08:51:45 +0000 (+0000) Subject: move declaration to the beginning of a block X-Git-Tag: 1.6.0-beta1~3^2~3053 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=972156c1827d28a2dcfb142c6dff4a6b07038c22;p=thirdparty%2Fasterisk.git move declaration to the beginning of a block git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@57993 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/say.c b/main/say.c index 2f26244c9e..e69efa766f 100644 --- a/main/say.c +++ b/main/say.c @@ -6762,6 +6762,9 @@ static int ast_say_number_full_ge(struct ast_channel *chan, int num, const char { int res = 0; char fn[512] = ""; + char* s = 0; + const char* remainder = fn; + if (!num) return ast_say_digits_full(chan, 0, ints, language, audiofd, ctrlfd); @@ -6769,8 +6772,6 @@ static int ast_say_number_full_ge(struct ast_channel *chan, int num, const char ast_translate_number_ge(num, fn, 512); - char* s = 0; - const char* remainder = fn; while (res == 0 && (s = strstr(remainder, " "))) { size_t len = s - remainder;