[MPlayer-cvslog] r32798 - trunk/configure

diego subversion at mplayerhq.hu
Wed Jan 19 18:42:15 CET 2011


Author: diego
Date: Wed Jan 19 18:42:15 2011
New Revision: 32798

Log:
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

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Wed Jan 19 10:00:40 2011	(r32797)
+++ trunk/configure	Wed Jan 19 18:42:15 2011	(r32798)
@@ -3811,7 +3811,7 @@ cat > $TMPC << EOF
 #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


More information about the MPlayer-cvslog mailing list