Skip to content

Commit a3a3186

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Follow-up fix for GH-13082
2 parents 89ea24f + 7065fe3 commit a3a3186

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/gd/gd.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,9 +2745,8 @@ static void php_imagechar(INTERNAL_FUNCTION_PARAMETERS, int mode)
27452745
gdImagePtr im;
27462746
int ch = 0, col, x, y, i, l = 0;
27472747
unsigned char *str = NULL;
2748-
zend_object *font_obj;
2748+
zend_object *font_obj = NULL;
27492749
zend_long font_int = 0;
2750-
gdFontPtr font = NULL;
27512750

27522751
ZEND_PARSE_PARAMETERS_START(6, 6)
27532752
Z_PARAM_OBJECT_OF_CLASS(IM, gd_image_ce)
@@ -2772,7 +2771,7 @@ static void php_imagechar(INTERNAL_FUNCTION_PARAMETERS, int mode)
27722771
y = Y;
27732772
x = X;
27742773

2775-
font = php_find_gd_font(font_obj, font_int);
2774+
gdFontPtr font = php_find_gd_font(font_obj, font_int);
27762775

27772776
switch (mode) {
27782777
case 0:

0 commit comments

Comments
 (0)