fix compile warnings.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Mon, 14 Jan 2013 18:34:23 +0000 (18:34 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Mon, 14 Jan 2013 18:34:23 +0000 (18:34 +0000)
the NULL is just to shut gcc being stupid.

SVN revision: 82774

src/lib/eet/eet_image.c

index 6eb59da5458fb94d957fb8ca559ef7cda8e7621e..37ab54042f32111fdac8d4356d34dfbabb879b74 100644 (file)
@@ -727,7 +727,7 @@ eet_data_image_lossless_compressed_convert(int         *size,
 
    {
       unsigned char *d, *comp;
-      int *header, *bigend_data, ret, ok = 1;
+      int *header, *bigend_data = NULL, ret, ok = 1;
       uLongf buflen = 0;
 
       buflen = (((w * h * 101) / 100) + 3) * 4;
@@ -736,7 +736,7 @@ eet_data_image_lossless_compressed_convert(int         *size,
 
       if (_eet_image_words_bigendian)
         {
-           int i;
+           unsigned int i;
 
            bigend_data = (int *) malloc(w * h * 4);
            if (!bigend_data) return NULL;