Skip to content

Commit 857fe61

Browse files
committed
Remove unnecesary check in php_mb_check_encoding()
The caller makes sure that this is not NULL.
1 parent f182309 commit 857fe61

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ext/mbstring/mbstring.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4222,10 +4222,6 @@ MBSTRING_API int php_mb_check_encoding(const char *input, size_t length, const c
42224222
const mbfl_encoding *encoding = MBSTRG(current_internal_encoding);
42234223
mbfl_buffer_converter *convd;
42244224

4225-
if (input == NULL) {
4226-
return MBSTRG(illegalchars) == 0;
4227-
}
4228-
42294225
if (enc != NULL) {
42304226
encoding = mbfl_name2encoding(enc);
42314227
if (!encoding || encoding == &mbfl_encoding_pass) {

0 commit comments

Comments
 (0)