diff options
| author | Pierre Joye <pajoye@php.net> | 2007-06-03 21:34:21 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2007-06-03 21:34:21 +0000 |
| commit | c76e5dd0bdc0e3bb7292a533568545ba0922999e (patch) | |
| tree | 990ea08552c315e41c26946f396f2c3b252cfce3 /ext/zip | |
| parent | d5d2d6e30e2e3bab65a2083d4a1bc2219170778e (diff) | |
| download | php-git-c76e5dd0bdc0e3bb7292a533568545ba0922999e.tar.gz | |
- fix logic (goto is a gift, I should use it :)
Diffstat (limited to 'ext/zip')
| -rw-r--r-- | ext/zip/php_zip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 662513a6c8..a30201b272 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -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) { |
