move declaration to the beginning of a block
authorLuigi Rizzo <rizzo@icir.org>
Tue, 6 Mar 2007 08:51:45 +0000 (08:51 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 6 Mar 2007 08:51:45 +0000 (08:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@57993 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/say.c

index 2f26244..e69efa7 100644 (file)
@@ -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;