--- a/compressionlibs/ziplib/test/rtest/inflateprimetest/zran.cpp Tue Feb 02 02:01:42 2010 +0200
+++ b/compressionlibs/ziplib/test/rtest/inflateprimetest/zran.cpp Fri Apr 16 16:46:38 2010 +0300
@@ -167,6 +167,7 @@
z_stream strm;
unsigned char input[CHUNK];
unsigned char window[WINSIZE];
+ struct point *next = NULL;
/* initialize inflate */
strm.zalloc = Z_NULL;
@@ -244,7 +245,7 @@
/* clean up and return index (release unused entries in list) */
(void)inflateEnd(&strm);
- struct point *next = (struct point *)realloc(index->list, sizeof(struct point) * index->have);
+ next = (struct point *)realloc(index->list, sizeof(struct point) * index->have);
if (next == NULL) {
free_index(index);
return Z_MEM_ERROR;