diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-01-13 12:56:28 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-01-13 12:56:28 +0000 |
commit | c33795b25b5d4206f6d0a358e788301bd199698f (patch) | |
tree | c88c96e7c2c63fd8c362e3a341b92e151d937818 | |
parent | 9acdcd93a7289a0eade34e5294200a47c7d310dd (diff) | |
download | php-git-c33795b25b5d4206f6d0a358e788301bd199698f.tar.gz |
Fixed variable re-declaration
-rw-r--r-- | main/streams/cast.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/streams/cast.c b/main/streams/cast.c index 9f5898c47c..6c3854b934 100644 --- a/main/streams/cast.c +++ b/main/streams/cast.c @@ -271,7 +271,7 @@ PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show newstream = php_stream_fopen_tmpfile(); if (newstream) { - int ret = php_stream_copy_to_stream_ex(stream, newstream, PHP_STREAM_COPY_ALL, NULL); + int retval = php_stream_copy_to_stream_ex(stream, newstream, PHP_STREAM_COPY_ALL, NULL); if (ret != SUCCESS) { php_stream_close(newstream); @@ -279,7 +279,7 @@ PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show int retcode = php_stream_cast(newstream, castas | flags, (void **)ret, show_err); if (retcode == SUCCESS) { - rewind(*(FILE**)ret); + rewind(*(FILE**)retval); } /* do some specialized cleanup */ |