summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-14 18:34:23 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-14 18:34:23 +0000
commit3701b41ac9486b6a56d9b5416966dc91918c6fbd (patch)
tree370625b05224df91eabc7c81f781db9acf8d9d42
parentd2a6e45c8020efdb942be330dfbbb625a30f9e43 (diff)
fix compile warnings.
the NULL is just to shut gcc being stupid. SVN revision: 82774
-rw-r--r--src/lib/eet/eet_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eet/eet_image.c b/src/lib/eet/eet_image.c
index 6eb59da545..37ab54042f 100644
--- a/src/lib/eet/eet_image.c
+++ b/src/lib/eet/eet_image.c
@@ -727,7 +727,7 @@ eet_data_image_lossless_compressed_convert(int *size,
727 727
728 { 728 {
729 unsigned char *d, *comp; 729 unsigned char *d, *comp;
730 int *header, *bigend_data, ret, ok = 1; 730 int *header, *bigend_data = NULL, ret, ok = 1;
731 uLongf buflen = 0; 731 uLongf buflen = 0;
732 732
733 buflen = (((w * h * 101) / 100) + 3) * 4; 733 buflen = (((w * h * 101) / 100) + 3) * 4;
@@ -736,7 +736,7 @@ eet_data_image_lossless_compressed_convert(int *size,
736 736
737 if (_eet_image_words_bigendian) 737 if (_eet_image_words_bigendian)
738 { 738 {
739 int i; 739 unsigned int i;
740 740
741 bigend_data = (int *) malloc(w * h * 4); 741 bigend_data = (int *) malloc(w * h * 4);
742 if (!bigend_data) return NULL; 742 if (!bigend_data) return NULL;