]> granicus.if.org Git - php/commitdiff
- slightly cleaner
authorPierre Joye <pajoye@php.net>
Mon, 3 Jan 2011 15:36:39 +0000 (15:36 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 3 Jan 2011 15:36:39 +0000 (15:36 +0000)
ext/gd/gd_ctx.c

index 7be95d02908a78144c931e2857dd3b1cc316bfbc..02097327f7cfc7638d9f5be6dca0732ae7e4a861 100644 (file)
@@ -118,7 +118,7 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
                }
        }
 
-       if (argc > 1 && to_zval) {
+       if (argc > 1 && to_zval != NULL) {
                if (Z_TYPE_P(to_zval) == IS_RESOURCE) {
                        php_stream_from_zval_no_verify(stream, &to_zval);
                        if (stream == NULL) {