compressionlibs/ziplib/test/rtest/inflateprimetest/zran.cpp
branchRCL_3
changeset 56 acd3cd4aaceb
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
--- a/compressionlibs/ziplib/test/rtest/inflateprimetest/zran.cpp	Thu Aug 19 11:33:45 2010 +0300
+++ b/compressionlibs/ziplib/test/rtest/inflateprimetest/zran.cpp	Tue Aug 31 16:54:36 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;