]> granicus.if.org Git - php/commitdiff
-Simplify
authorMarcus Boerger <helly@php.net>
Mon, 22 Jan 2007 02:07:45 +0000 (02:07 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 22 Jan 2007 02:07:45 +0000 (02:07 +0000)
ext/phar/phar.c

index 0299f05e258d99ddf29cf7c01d6772eaa946af3d..f1a795458cf89681ab453ceed4d603a95eeb8516 100644 (file)
@@ -1621,9 +1621,7 @@ int phar_flush(phar_entry_data *data, char *user_stub, long len TSRMLS_DC) /* {{
        } else {
                if (data->phar->halt_offset && oldfile) {
                        if (data->phar->halt_offset != php_stream_copy_to_stream(oldfile, newfile, data->phar->halt_offset)) {
-                               if (oldfile) {
-                                       php_stream_close(oldfile);
-                               }
+                               php_stream_close(oldfile);
                                php_stream_close(newfile);
                                php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "unable to copy stub of old phar to new phar \"%s\"", data->phar->fname);
                                return EOF;