]> granicus.if.org Git - php/commitdiff
Removed unreachable code (stream == NULL check is done already)
authorIlia Alshanetsky <iliaa@php.net>
Wed, 21 Sep 2011 19:08:30 +0000 (19:08 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 21 Sep 2011 19:08:30 +0000 (19:08 +0000)
ext/zip/php_zip.c

index d13757403c432db0d5f1eebebb0991948508fe55..7bf717926d07494ed9e1ea294e65b7ab182fa6e1 100644 (file)
@@ -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);