]> granicus.if.org Git - php/commitdiff
- fix logic (goto is a gift, I should use it :)
authorPierre Joye <pajoye@php.net>
Sun, 3 Jun 2007 21:34:21 +0000 (21:34 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 3 Jun 2007 21:34:21 +0000 (21:34 +0000)
ext/zip/php_zip.c

index 662513a6c8a307175a2970adfd0e4b5f11865f08..a30201b27293c8474ddb0581ebf8191466642a0f 100644 (file)
@@ -1025,8 +1025,9 @@ static ZIPARCHIVE_METHOD(addEmptyDir)
 
                if (zip_add_dir(intern, (const char *)s) == -1) {
                        RETVAL_FALSE;
+               } else {
+                       RETVAL_TRUE;
                }
-               RETVAL_TRUE;
        }
 
        if (s != dirname) {