]> granicus.if.org Git - php/commitdiff
Removed useless check
authorDmitry Stogov <dmitry@zend.com>
Thu, 27 Dec 2018 19:35:37 +0000 (22:35 +0300)
committerDmitry Stogov <dmitry@zend.com>
Thu, 27 Dec 2018 19:35:37 +0000 (22:35 +0300)
ext/phar/dirstream.c

index 70e696a16749f6cfa6e7f550c3b0e76edb490a1f..548ef14d07c4c8a118120a83f44ce74199993917 100644 (file)
@@ -44,9 +44,8 @@ static int phar_dir_close(php_stream *stream, int close_handle)  /* {{{ */
 {
        HashTable *data = (HashTable *)stream->abstract;
 
-       if (data && HT_FLAGS(data)) {
+       if (data) {
                zend_hash_destroy(data);
-               HT_FLAGS(data) = 0;
                FREE_HASHTABLE(data);
                stream->abstract = NULL;
        }