From 172d0370689bae076f374964e0c7c464a1ff6cfa Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 21 Sep 2011 19:08:30 +0000 Subject: Removed unreachable code (stream == NULL check is done already) --- ext/zip/php_zip.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ext/zip/php_zip.c') 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); -- cgit v1.2.1