summaryrefslogtreecommitdiff
path: root/main/streams.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/streams.c')
-rwxr-xr-xmain/streams.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/streams.c b/main/streams.c
index 743fcac233..b407fac85a 100755
--- a/main/streams.c
+++ b/main/streams.c
@@ -760,8 +760,9 @@ PHPAPI char *_php_stream_gets(php_stream *stream, char *buf, size_t maxlen TSRML
}
if (total_copied == 0) {
- if (grow_mode)
- assert(bufstart != NULL);
+ if (grow_mode) {
+ assert(bufstart == NULL);
+ }
return NULL;
}