summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-10-14 05:38:50 +0000
committerWez Furlong <wez@php.net>2002-10-14 05:38:50 +0000
commit106631fce1beb26d07cc780c2079912eab8fef78 (patch)
tree3a2eb2845386de28987eb1e7d18d4f512a63bb1d /main
parent1fa263a4ec809c5e35ea9ed71258fb2598078f03 (diff)
downloadphp-git-106631fce1beb26d07cc780c2079912eab8fef78.tar.gz
*cough*
Fix inverted logic for the assert.
Diffstat (limited to 'main')
-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;
}