]> granicus.if.org Git - php/commitdiff
- nuke flags local variable, it is constant
authorPierre Joye <pajoye@php.net>
Mon, 30 Oct 2006 23:00:54 +0000 (23:00 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 30 Oct 2006 23:00:54 +0000 (23:00 +0000)
ext/zip/php_zip.c

index 63ddc7445fdffbe577a50e8c8f6c2d335dd2406e..02b08aa64090364b16e1011665eb492ab2bcd2d6 100644 (file)
@@ -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);