Skip to content

Commit

Permalink
Fix always non-null warning
Browse files Browse the repository at this point in the history
ZSTR_VAL can not be null.
  • Loading branch information
nikic committed Sep 11, 2022
1 parent 93b5375 commit 9f9042f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mbstring/mbstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ static PHP_INI_MH(OnUpdate_mbstring_http_input)
php_error_docref("ref.mbstring", E_DEPRECATED, "Use of mbstring.http_input is deprecated");
}

if (!new_value || !ZSTR_VAL(new_value)) {
if (!new_value) {
const char *encoding = php_get_input_encoding();
MBSTRG(http_input_set) = 0;
_php_mb_ini_mbstring_http_input_set(encoding, strlen(encoding));
Expand Down

0 comments on commit 9f9042f

Please sign in to comment.