diff src/utils.cc @ 8929:379297a149f0

utils.cc (octave_vsnprintf): avoid uninitialized variable warning
author John W. Eaton <jwe@octave.org>
date Sat, 07 Mar 2009 14:41:42 -0500
parents eb63fbe60fab
children 7c02ec148a3c
line wrap: on
line diff
--- a/src/utils.cc	Sat Mar 07 14:25:45 2009 -0500
+++ b/src/utils.cc	Sat Mar 07 14:41:42 2009 -0500
@@ -1116,9 +1116,9 @@
   static char *buf = 0;
 
 #if defined (HAVE_C99_VSNPRINTF)
-  size_t nchars;
+  size_t nchars = 0;
 #else
-  int nchars;
+  int nchars = 0;
 #endif
 
   if (! buf)