compressionlibs/ziplib/test/rtest/inflateprimetest/zran.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
--- a/compressionlibs/ziplib/test/rtest/inflateprimetest/zran.cpp	Tue Aug 31 16:54:36 2010 +0300
+++ b/compressionlibs/ziplib/test/rtest/inflateprimetest/zran.cpp	Wed Sep 01 12:36:54 2010 +0100
@@ -167,7 +167,6 @@
     z_stream strm;
     unsigned char input[CHUNK];
     unsigned char window[WINSIZE];
-	struct point *next = NULL;
 
     /* initialize inflate */
     strm.zalloc = Z_NULL;
@@ -245,7 +244,7 @@
     /* clean up and return index (release unused entries in list) */
     (void)inflateEnd(&strm);
     
-    next = (struct point *)realloc(index->list, sizeof(struct point) * index->have);
+    struct point *next = (struct point *)realloc(index->list, sizeof(struct point) * index->have);
     if (next == NULL) {
         free_index(index);
         return Z_MEM_ERROR;