]> granicus.if.org Git - php/commitdiff
Do explicit test againt to FAILURE.
authorYasuo Ohgaki <yohgaki@php.net>
Fri, 1 Mar 2002 09:29:32 +0000 (09:29 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Fri, 1 Mar 2002 09:29:32 +0000 (09:29 +0000)
# Thanks Rasmus.

main/output.c

index 58f3504fe472454fcda06c6cb79f787dc6ab8406..2e19d26117c30c6a53965a501751e80c8a2ca8a3 100644 (file)
@@ -654,9 +654,10 @@ static int php_ob_buffer_status(php_ob_buffer *ob_buffer, zval *result)
        zval *elem;
 
        MAKE_STD_ZVAL(elem);
-       if (array_init(elem))
+       if (array_init(elem) == FAILURE) {
                return FAILURE;
-       
+       }
+
        if (ob_buffer->internal_output_handler) {
                add_assoc_long(elem, "type", PHP_OUTPUT_HANDLER_INTERNAL);
        }