diff options
author | Remi Collet <remi@php.net> | 2015-09-07 13:52:28 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2015-09-07 13:52:28 +0200 |
commit | debfc866d2971c69d4f47662fb4bb70feb0c0007 (patch) | |
tree | 4d0ff32968fdc280556541c5c07e3535803f2920 /ext/zip/php_zip.c | |
parent | d47029167dfc2184f9a630a75a55e145bff8b017 (diff) | |
download | php-git-debfc866d2971c69d4f47662fb4bb70feb0c0007.tar.gz |
Fix build
php_zip.c:1647:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
php_zip.c:1648:3: error: format not a string literal and no format arguments [-Werror=format-security]
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r-- | ext/zip/php_zip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 0355db48e5..c203148334 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -1626,8 +1626,8 @@ static ZIPARCHIVE_METHOD(close) ze_obj = (ze_zip_object*) zend_object_store_get_object(this TSRMLS_CC); - if (err = zip_close(intern)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, zip_strerror(intern)); + if ((err = zip_close(intern))) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", zip_strerror(intern)); zip_discard(intern); } |