From e3d1ab787f8fbfb48721a043436caf2fdecc3bb1 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 20 Jan 2011 19:32:36 +0000 Subject: [PATCH] Fixed variable overloading --- ext/phar/zip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/phar/zip.c b/ext/phar/zip.c index afda167a21..fa3642f5c7 100644 --- a/ext/phar/zip.c +++ b/ext/phar/zip.c @@ -1434,9 +1434,9 @@ nocentralerror: php_stream_seek(pass.centralfp, 0, SEEK_SET); { - size_t len; - int ret = phar_stream_copy_to_stream(pass.centralfp, pass.filefp, PHP_STREAM_COPY_ALL, &len); - if (SUCCESS != ret || len != cdir_size) { + size_t clen; + int ret = phar_stream_copy_to_stream(pass.centralfp, pass.filefp, PHP_STREAM_COPY_ALL, &clen); + if (SUCCESS != ret || clen != cdir_size) { if (error) { spprintf(error, 4096, "phar zip flush of \"%s\" failed: unable to write central-directory", phar->fname); } -- 2.40.0