diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-03-06 08:51:45 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-03-06 08:51:45 +0000 |
commit | 972156c1827d28a2dcfb142c6dff4a6b07038c22 (patch) | |
tree | 3df50716ea398886ce4d10b07b27b088b55ed58b | |
parent | e9dd63e77c60fecb157e03c3fbc08e9b6f038aef (diff) |
move declaration to the beginning of a block
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@57993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/say.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/say.c b/main/say.c index 2f26244c9..e69efa766 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; |