Skip to content

Commit 60c8be8

Browse files
authored
Update mbstring.c
1 parent 3cc6435 commit 60c8be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/mbstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2631,6 +2631,7 @@ PHP_FUNCTION(mb_str_begins)
26312631
RETURN_BOOL(0);
26322632
}
26332633
} else {
2634+
char buffer[42];
26342635
switch (-n) {
26352636
case 1:
26362637
break;
@@ -2641,7 +2642,6 @@ PHP_FUNCTION(mb_str_begins)
26412642
php_error_docref(NULL, E_NOTICE, "Argument is empty");
26422643
break;
26432644
default:
2644-
char buffer[42];
26452645
sprintf(buffer, "Unknown error in mb_strpos. Error code: %zu", n);
26462646
php_error_docref(NULL, E_WARNING, buffer);
26472647
break;

0 commit comments

Comments
 (0)