Skip to content

Commit 9f9042f

Browse files
committed
Fix always non-null warning
ZSTR_VAL can not be null.
1 parent 93b5375 commit 9f9042f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/mbstring.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ static PHP_INI_MH(OnUpdate_mbstring_http_input)
761761
php_error_docref("ref.mbstring", E_DEPRECATED, "Use of mbstring.http_input is deprecated");
762762
}
763763

764-
if (!new_value || !ZSTR_VAL(new_value)) {
764+
if (!new_value) {
765765
const char *encoding = php_get_input_encoding();
766766
MBSTRG(http_input_set) = 0;
767767
_php_mb_ini_mbstring_http_input_set(encoding, strlen(encoding));

0 commit comments

Comments
 (0)