Skip to content

Commit

Permalink
GH-15824: Remove check necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
youkidearitai committed Sep 10, 2024
1 parent 98678e6 commit d3c83d1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ext/mbstring/libmbfl/mbfl/mbfl_encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,6 @@ const mbfl_encoding *mbfl_name2encoding_ex(const char *name, size_t name_len)
}
#endif

if (name_len == 0) {
return NULL;
}

/* Use perfect hash lookup for name */
if (name_len <= NAME_HASH_MAX_NAME_LENGTH && name_len >= NAME_HASH_MIN_NAME_LENGTH) {
unsigned int key = mbfl_name2encoding_perfect_hash(name, name_len);
Expand Down

0 comments on commit d3c83d1

Please sign in to comment.