From 03dfef9f99fe641e2da8c854a0a561a83c33bdc8 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 22 Jan 2007 02:07:45 +0000 Subject: [PATCH] -Simplify --- ext/phar/phar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 0299f05e25..f1a795458c 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -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; -- 2.40.0