[svn-commits] russell: trunk r364438 - /trunk/apps/app_minivm.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Apr 27 20:10:40 CDT 2012


Author: russell
Date: Fri Apr 27 20:10:35 2012
New Revision: 364438

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=364438
Log:
app_minivm: Fix a couple compiler warnings.

The warnings were about argv[0] being used uninitialized, which is correct.
Just remove setting username to this value, since username is set again before
it actually gets used.

Modified:
    trunk/apps/app_minivm.c

Modified: trunk/apps/app_minivm.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_minivm.c?view=diff&rev=364438&r1=364437&r2=364438
==============================================================================
--- trunk/apps/app_minivm.c (original)
+++ trunk/apps/app_minivm.c Fri Apr 27 20:10:35 2012
@@ -2085,7 +2085,7 @@
 	char *domain;
 	char *tmpptr;
 	struct minivm_account *vmu;
-	char *username = argv[0];
+	char *username;
 	const char *template = "";
 	const char *filename;
 	const char *format;
@@ -2457,7 +2457,7 @@
 	char *domain;
 	char *tmpptr = NULL;
 	struct minivm_account *vmu;
-	char *username = argv[0];
+	char *username;
 	struct ast_flags flags = { 0 };
 	char *opts[OPT_ARG_ARRAY_SIZE];
 	int error = FALSE;




More information about the svn-commits mailing list