Remove unnecesary check in php_mb_check_encoding()

The caller makes sure that this is not NULL.
This commit is contained in:
Nikita Popov 2020-03-31 21:01:42 +02:00
parent f182309e87
commit 857fe616fa

View file

@ -4222,10 +4222,6 @@ MBSTRING_API int php_mb_check_encoding(const char *input, size_t length, const c
const mbfl_encoding *encoding = MBSTRG(current_internal_encoding);
mbfl_buffer_converter *convd;
if (input == NULL) {
return MBSTRG(illegalchars) == 0;
}
if (enc != NULL) {
encoding = mbfl_name2encoding(enc);
if (!encoding || encoding == &mbfl_encoding_pass) {