changeset 32711:ebb1c06a639d

configure: Initialize va_list variable as '{0}' instead of NULL in vsscanf test. The vsscanf test was generating errors with clang on FreeBSD 8.1 and therefore our local vsscanf implementation got compiled, leading to MPlayer crashes. tmp.c:4:26: error: array initializer must be an initializer list
author diego
date Wed, 19 Jan 2011 17:42:15 +0000
parents 13b1606a71a4
children 6ff3cc81d602
files configure
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Jan 19 09:00:40 2011 +0000
+++ b/configure	Wed Jan 19 17:42:15 2011 +0000
@@ -3811,7 +3811,7 @@
 #define _ISOC99_SOURCE
 #include <stdarg.h>
 #include <stdio.h>
-int main(void) { va_list ap = NULL; vsscanf("foo", "bar", ap); return 0; }
+int main(void) { va_list ap = { 0 }; vsscanf("foo", "bar", ap); return 0; }
 EOF
 _vsscanf=no
 cc_check && _vsscanf=yes