[asterisk-commits] rizzo: trunk r75365 - /trunk/apps/app_minivm.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 17 07:46:25 CDT 2007
Author: rizzo
Date: Tue Jul 17 07:46:25 2007
New Revision: 75365
URL: http://svn.digium.com/view/asterisk?view=rev&rev=75365
Log:
Initialize a variable to avoid a warning when the compiler
(and/or the optimization level) may think it is used uninitialized.
The code was indeed correct, but unfortunately the result of
some compiler checks such as -Wunused and -Wuninitialized depends
heavily on the optimization level.
Modified:
trunk/apps/app_minivm.c
Modified: trunk/apps/app_minivm.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_minivm.c?view=diff&rev=75365&r1=75364&r2=75365
==============================================================================
--- trunk/apps/app_minivm.c (original)
+++ trunk/apps/app_minivm.c Tue Jul 17 07:46:25 2007
@@ -1982,7 +1982,7 @@
char filename[PATH_MAX];
char tmp[PATH_MAX];
char *domain;
- char *tmpptr;
+ char *tmpptr = NULL;
struct minivm_account *vmu;
char *username = argv[0];
struct ast_flags flags = { 0 };
More information about the asterisk-commits
mailing list