From d2d78d993dd66d7409561839d87423bb3d43cfb0 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 21 Sep 2011 19:08:30 +0000 Subject: [PATCH] Removed unreachable code (stream == NULL check is done already) --- ext/zip/php_zip.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index d13757403c..7bf717926d 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -272,14 +272,6 @@ static int php_zip_extract_file(struct zip * za, char *dest, char *file, int fil } n = 0; - if (stream == NULL) { - int ret = zip_fclose(zf); - efree(fullpath); - efree(file_basename); - efree(file_dirname_fullpath); - free(new_state.cwd); - return 0; - } while ((n=zip_fread(zf, b, sizeof(b))) > 0) { php_stream_write(stream, b, n); -- 2.50.1