[asterisk-commits] rizzo: trunk r57993 - /trunk/main/say.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 6 01:51:46 MST 2007


Author: rizzo
Date: Tue Mar  6 02:51:45 2007
New Revision: 57993

URL: http://svn.digium.com/view/asterisk?view=rev&rev=57993
Log:
move declaration to the beginning of a block


Modified:
    trunk/main/say.c

Modified: trunk/main/say.c
URL: http://svn.digium.com/view/asterisk/trunk/main/say.c?view=diff&rev=57993&r1=57992&r2=57993
==============================================================================
--- trunk/main/say.c (original)
+++ trunk/main/say.c Tue Mar  6 02:51:45 2007
@@ -6762,6 +6762,9 @@
 {
 	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 @@
 	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;



More information about the asterisk-commits mailing list