changeset 32150:068e6ec38400

Initialize variable in vsscanf configure check; fixes the warning: tmp.c:4: warning: 'ap' is used uninitialized in this function
author diego
date Tue, 14 Sep 2010 10:16:31 +0000
parents 0261b706dddf
children 681716cd9232
files configure
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Sep 14 10:11:46 2010 +0000
+++ b/configure	Tue Sep 14 10:16:31 2010 +0000
@@ -3909,7 +3909,7 @@
 #define _ISOC99_SOURCE
 #include <stdarg.h>
 #include <stdio.h>
-int main(void) { va_list ap; vsscanf("foo", "bar", ap); return 0; }
+int main(void) { va_list ap = NULL; vsscanf("foo", "bar", ap); return 0; }
 EOF
 _vsscanf=no
 cc_check && _vsscanf=yes