From: Ilia Alshanetsky Date: Fri, 24 Jan 2003 19:23:53 +0000 (+0000) Subject: Fixed bug #21533 (a rare condition where error can remain undefined and X-Git-Tag: PHP_5_0_dev_before_13561_fix~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=383171b11b8eccb800fe2df820d3db3b28d7fbc1;p=php Fixed bug #21533 (a rare condition where error can remain undefined and result in undefined behavior when it is used without being initialized). --- 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;