From: Ilia Alshanetsky Date: Wed, 21 Sep 2011 19:08:30 +0000 (+0000) Subject: Removed unreachable code (stream == NULL check is done already) X-Git-Tag: php-5.5.0alpha1~1094 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2d78d993dd66d7409561839d87423bb3d43cfb0;p=php Removed unreachable code (stream == NULL check is done already) --- 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);