summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-09-21 19:08:30 +0000
committerIlia Alshanetsky <iliaa@php.net>2011-09-21 19:08:30 +0000
commit172d0370689bae076f374964e0c7c464a1ff6cfa (patch)
tree11a70014982e4ebc6294e033b38efd0b644e059d /ext/zip/php_zip.c
parentd603d05398ec636029c2d0268ec0b3dccbfa5d8d (diff)
downloadphp-git-172d0370689bae076f374964e0c7c464a1ff6cfa.tar.gz
Removed unreachable code (stream == NULL check is done already)
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c8
1 files changed, 0 insertions, 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);