]> granicus.if.org Git - php/commitdiff
Fixed variable overloading
authorIlia Alshanetsky <iliaa@php.net>
Thu, 20 Jan 2011 19:32:36 +0000 (19:32 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 20 Jan 2011 19:32:36 +0000 (19:32 +0000)
ext/phar/zip.c

index afda167a215bb3488355bd933cd2ac6aa6060ec7..fa3642f5c73ffc0f217005e713eba04c6044b513 100644 (file)
@@ -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);
                        }