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 | 93fd1bf53faffe3fc37d364221af7900347e62f7 (patch) | |
tree | 04d0897c601e20515a9a0c4686884b13cf9edcbf | |
parent | b2c4503fbe920a5a343008ccbd037b1f5e31eded (diff) | |
download | php-git-93fd1bf53faffe3fc37d364221af7900347e62f7.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 */ |