]> granicus.if.org Git - php/commitdiff
Fixed bug #21533 (a rare condition where error can remain undefined and
authorIlia Alshanetsky <iliaa@php.net>
Fri, 24 Jan 2003 19:23:53 +0000 (19:23 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 24 Jan 2003 19:23:53 +0000 (19:23 +0000)
result in undefined behavior when it is used without being initialized).

ext/gd/gd.c

index 82b8a998e610e1bbe81ceb15e04417f815296135..733d0ff730595558219124e6445f25968753c845 100644 (file)
@@ -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;