diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2011-01-20 19:32:36 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2011-01-20 19:32:36 +0000 |
| commit | e3d1ab787f8fbfb48721a043436caf2fdecc3bb1 (patch) | |
| tree | fc50d06993f95f389fdd487d1c5c71628e080817 | |
| parent | 96996ec5578e05359e69eead4721f8f6e936ed08 (diff) | |
| download | php-git-e3d1ab787f8fbfb48721a043436caf2fdecc3bb1.tar.gz | |
Fixed variable overloading
| -rw-r--r-- | ext/phar/zip.c | 6 |
1 files 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); } |
