From 95dbc9d3f07545813bb403d9f532dff6fb80833a Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 3 Jan 2011 15:36:39 +0000 Subject: [PATCH] - slightly cleaner --- ext/gd/gd_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gd/gd_ctx.c b/ext/gd/gd_ctx.c index 7be95d0290..02097327f7 100644 --- a/ext/gd/gd_ctx.c +++ b/ext/gd/gd_ctx.c @@ -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) { -- 2.40.0