]> granicus.if.org Git - php/commitdiff
check if it matches... not if it doesn't...
authorWez Furlong <wez@php.net>
Tue, 25 May 2004 13:00:25 +0000 (13:00 +0000)
committerWez Furlong <wez@php.net>
Tue, 25 May 2004 13:00:25 +0000 (13:00 +0000)
main/streams/plain_wrapper.c

index 9a4027ec9ab2955e91841350656b3382578e0c2a..b161f9fb1f568e250081127a0a39381b24dfa16e 100644 (file)
@@ -429,7 +429,7 @@ static int php_stdiop_close(php_stream *stream, int close_handle TSRMLS_DC)
                        }
                } else if (data->fd != -1) {
 #ifdef DEBUG
-                       if (data->fd == 2 && strcmp(sapi_module.name, "cli")) {
+                       if (data->fd == 2 && 0 == strcmp(sapi_module.name, "cli")) {
                                /* don't close stderr in CLI in DEBUG mode, as we want to see any leaks */
                                ret = 0;
                        } else {