From 383171b11b8eccb800fe2df820d3db3b28d7fbc1 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 24 Jan 2003 19:23:53 +0000 Subject: [PATCH] Fixed bug #21533 (a rare condition where error can remain undefined and result in undefined behavior when it is used without being initialized). --- ext/gd/gd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 82b8a998e6..733d0ff730 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -2943,7 +2943,7 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int int col, x, y, l=0, i, brect[8]; double ptsize, angle; unsigned char *str = NULL, *fontname = NULL; - char *error; + char *error = NULL; int argc; #if HAVE_GD_STRINGFTEX gdFTStringExtra strex; -- 2.50.1