diff -r 4332f0f7be53 -r acd3cd4aaceb compressionlibs/ziplib/test/rtest/inflateprimetest/zran.cpp --- 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;