]> granicus.if.org Git - php/commitdiff
*cough*
authorWez Furlong <wez@php.net>
Mon, 14 Oct 2002 05:38:50 +0000 (05:38 +0000)
committerWez Furlong <wez@php.net>
Mon, 14 Oct 2002 05:38:50 +0000 (05:38 +0000)
Fix inverted logic for the assert.

main/streams.c

index 743fcac2331559426f9475d08a528af8711b73b2..b407fac85a696ab6b016e6727d48fb7d8d74eaa6 100755 (executable)
@@ -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;
        }