[asterisk-commits] file: trunk r42298 - /trunk/apps/app_read.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Sep 7 11:54:37 MST 2006


Author: file
Date: Thu Sep  7 13:54:36 2006
New Revision: 42298

URL: http://svn.digium.com/view/asterisk?rev=42298&view=rev
Log:
Minor cleanup and make sure the tmp variable is clean

Modified:
    trunk/apps/app_read.c

Modified: trunk/apps/app_read.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_read.c?rev=42298&r1=42297&r2=42298&view=diff
==============================================================================
--- trunk/apps/app_read.c (original)
+++ trunk/apps/app_read.c Thu Sep  7 13:54:36 2006
@@ -88,11 +88,9 @@
 {
 	int res = 0;
 	struct ast_module_user *u;
-	char tmp[256];
-	int maxdigits=255;
-	int tries = 1;
-	int to = 0;
-	int x = 0;
+	char tmp[256] = "";
+	int maxdigits = 255;
+	int tries = 1, to = 0, x = 0;
 	char *argcopy = NULL;
 	struct tone_zone_sound *ts;
 	struct ast_flags flags = {0};



More information about the asterisk-commits mailing list