changeset 32158:ec7786b93e52

Initialize variable in giflib check; fixes the warning: tmp.c:5: warning: 'gif.UserData' is used uninitialized in this function
author diego
date Tue, 14 Sep 2010 13:21:05 +0000
parents aae5b14d959a
children f74d42014f51
files configure
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Sep 14 13:12:11 2010 +0000
+++ b/configure	Tue Sep 14 13:21:05 2010 +0000
@@ -5208,7 +5208,7 @@
 #include <stdio.h>
 #include <gif_lib.h>
 int main(void) {
-  GifFileType gif;
+  GifFileType gif = {.UserData = NULL};
   printf("UserData is at address %p\n", gif.UserData);
   return 0;
 }