Skip to content

Commit 697bb2a

Browse files
committed
Code review
1 parent 8776784 commit 697bb2a

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
@@ -1872,12 +1872,11 @@ PHP_FUNCTION(imagexbm)
18721872
zend_long foreground_color;
18731873
zend_bool foreground_color_is_null = 1;
18741874
gdImagePtr im;
1875-
int argc = ZEND_NUM_ARGS();
18761875
int i;
18771876
gdIOCtx *ctx = NULL;
18781877
php_stream *stream;
18791878

1880-
if (zend_parse_parameters(argc, "Op!|l!", &imgind, gd_image_ce, &file, &file_len, &foreground_color, &foreground_color_is_null) == FAILURE) {
1879+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Op!|l!", &imgind, gd_image_ce, &file, &file_len, &foreground_color, &foreground_color_is_null) == FAILURE) {
18811880
RETURN_THROWS();
18821881
}
18831882

@@ -3731,7 +3730,7 @@ PHP_FUNCTION(imageaffine)
37313730
gdImagePtr dst;
37323731
gdRect rect;
37333732
gdRectPtr pRect = NULL;
3734-
zval *z_rect = NULL;
3733+
zval *z_rect;
37353734
zval *z_affine;
37363735
zval *tmp;
37373736
double affine[6];

0 commit comments

Comments
 (0)