comparison 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
comparison
equal deleted inserted replaced
8928:80f044c83de3 8929:379297a149f0
1114 static size_t size = initial_size; 1114 static size_t size = initial_size;
1115 1115
1116 static char *buf = 0; 1116 static char *buf = 0;
1117 1117
1118 #if defined (HAVE_C99_VSNPRINTF) 1118 #if defined (HAVE_C99_VSNPRINTF)
1119 size_t nchars; 1119 size_t nchars = 0;
1120 #else 1120 #else
1121 int nchars; 1121 int nchars = 0;
1122 #endif 1122 #endif
1123 1123
1124 if (! buf) 1124 if (! buf)
1125 buf = new char [size]; 1125 buf = new char [size];
1126 1126