summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-09-27 09:03:40 +0000
committerMarcus Boerger <helly@php.net>2004-09-27 09:03:40 +0000
commit920b7061420e7e26108542bb6ebfbe160d064c11 (patch)
tree9208f5aaccf11e80dea4f2d185da48ba2511e5ac
parent04fe8184f87a73db9eb519be19aba160ec2e9915 (diff)
downloadphp-git-920b7061420e7e26108542bb6ebfbe160d064c11.tar.gz
- Fix warning
-rw-r--r--Zend/zend_stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_stream.c b/Zend/zend_stream.c
index 1e307591d9..c66fb17668 100644
--- a/Zend/zend_stream.c
+++ b/Zend/zend_stream.c
@@ -93,7 +93,8 @@ ZEND_API int zend_stream_fixup(zend_file_handle *file_handle TSRMLS_DC)
ZEND_API size_t zend_stream_read(zend_file_handle *file_handle, char *buf, size_t len TSRMLS_DC)
{
if (file_handle->handle.stream.interactive) {
- int c = '*', n;
+ int c = '*';
+ size_t n;
for ( n = 0; n < len && (c = zend_stream_getc( file_handle TSRMLS_CC)) != EOF && c != '\n'; ++n )
buf[n] = (char) c;