changeset 32153:39d82e93c917

Initialize variable in libspeex configure check; fixes the warning: tmp.c:2: warning: 'dec' is used uninitialized in this function
author diego
date Tue, 14 Sep 2010 10:41:25 +0000
parents d125167b2034
children e1619533325a
files configure
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Sep 14 10:32:27 2010 +0000
+++ b/configure	Tue Sep 14 10:41:25 2010 +0000
@@ -6677,8 +6677,9 @@
 if test "$_speex" = auto ; then
   _speex=no
   cat > $TMPC << EOF
+#include <stddef.h>
 #include <speex/speex.h>
-int main(void) { SpeexBits bits; void *dec; speex_decode_int(dec, &bits, dec); return 0; }
+int main(void) { SpeexBits bits; void *dec = NULL; speex_decode_int(dec, &bits, dec); return 0; }
 EOF
   cc_check -lspeex $_ld_lm && _speex=yes
 fi