diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-24 19:23:53 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-24 19:23:53 +0000 |
commit | 383171b11b8eccb800fe2df820d3db3b28d7fbc1 (patch) | |
tree | 43fdf424108ffa3b877f8c6d44cc9cf8366ef9ac /ext/gd/gd.c | |
parent | 417ba55c1fedb71c742f7d35a12e0c7ef663c6b6 (diff) | |
download | php-git-383171b11b8eccb800fe2df820d3db3b28d7fbc1.tar.gz |
Fixed bug #21533 (a rare condition where error can remain undefined and
result in undefined behavior when it is used without being initialized).
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r-- | ext/gd/gd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |