[asterisk-commits] russell: trunk r91193 - /trunk/apps/app_directory.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 5 11:45:00 CST 2007


Author: russell
Date: Wed Dec  5 11:44:59 2007
New Revision: 91193

URL: http://svn.digium.com/view/asterisk?view=rev&rev=91193
Log:
Resolve compiler warnings.

Modified:
    trunk/apps/app_directory.c

Modified: trunk/apps/app_directory.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_directory.c?view=diff&rev=91193&r1=91192&r2=91193
==============================================================================
--- trunk/apps/app_directory.c (original)
+++ trunk/apps/app_directory.c Wed Dec  5 11:44:59 2007
@@ -482,7 +482,7 @@
 	int res;
 	int found=0;
 	int lastuserchoice = 0;
-	char *start, *conv, *stringp = NULL;
+	char *start, *conv = NULL, *stringp = NULL;
 	char *pos;
 	int breakout = 0;
 
@@ -636,7 +636,7 @@
 		if (!res && ucfg) {
 			/* Search users.conf for all names which start with those digits */
 			if (ast_test_flag(flags, OPT_SELECTFROMMENU)) {
-				char *fullname;
+				char *fullname = NULL;
 				struct items menuitems[8];
 				int menucount = 0;
 				for (cat = ast_category_browse(ucfg, NULL); cat && !res ; cat = ast_category_browse(ucfg, cat)) {




More information about the asterisk-commits mailing list