Skip to content

Commit 658cc94

Browse files
committed
Code review
1 parent 8776784 commit 658cc94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/gd/gd.c

Lines changed: 1 addition & 2 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

0 commit comments

Comments
 (0)