From: Pierre Joye Date: Mon, 30 Oct 2006 23:00:54 +0000 (+0000) Subject: - nuke flags local variable, it is constant X-Git-Tag: RELEASE_1_0_0RC1~1180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7e9224471139fe44bbfb6e958bfb4bcfece6024;p=php - nuke flags local variable, it is constant --- diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 63ddc7445f..02b08aa640 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -639,7 +639,6 @@ PHP_FUNCTION(zip_read) zval *zip_dp; zip_read_rsrc *zr_rsrc; int ret; - long flags = 0; zip_rsrc *rsrc_int; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zip_dp) == FAILURE) { @@ -654,7 +653,7 @@ PHP_FUNCTION(zip_read) zr_rsrc = emalloc(sizeof(zip_read_rsrc)); - ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, flags, &zr_rsrc->sb); + ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); if (ret != 0) { efree(zr_rsrc);