]> granicus.if.org Git - php/commitdiff
Pointer returned is never used
authorPierrick Charron <pierrick@php.net>
Sun, 7 Aug 2011 05:46:31 +0000 (05:46 +0000)
committerPierrick Charron <pierrick@php.net>
Sun, 7 Aug 2011 05:46:31 +0000 (05:46 +0000)
ext/phar/dirstream.c

index f0fe1be45cc9ff5d4794afeb57f04e8c6f0af839..4b6fd586f9b99136499c8dc4381019168840de39 100644 (file)
@@ -503,7 +503,7 @@ int phar_wrapper_mkdir(php_stream_wrapper *wrapper, char *url_from, int mode, in
                return 0;
        }
 
-       if ((e = phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 0, &error, 1 TSRMLS_CC))) {
+       if (phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 0, &error, 1 TSRMLS_CC)) {
                /* entry exists as a file */
                php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: cannot create directory \"%s\" in phar \"%s\", file already exists", resource->path+1, resource->host);
                php_url_free(resource);