aboutsummaryrefslogtreecommitdiffstats
path: root/main/say.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-06 08:51:45 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-06 08:51:45 +0000
commit49356c7e94f9e7f46b964f32a8efd2b1788fa20f (patch)
tree3df50716ea398886ce4d10b07b27b088b55ed58b /main/say.c
parentd66ac8adf662f9c725b0c98046f2a54d0e81f4aa (diff)
move declaration to the beginning of a block
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@57993 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/say.c')
-rw-r--r--main/say.c5
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;