Skip to content

Commit d8a976e

Browse files
committed
ext/readline: Remove redundant SAPI name length check
1 parent 11688ab commit d8a976e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ext/readline/readline_cli.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ typedef cli_shell_callbacks_t *(__cdecl *get_cli_shell_callbacks)(void);
709709
get_cli_shell_callbacks get_callbacks; \
710710
HMODULE hMod = GetModuleHandle("php.exe"); \
711711
(cb) = NULL; \
712-
if (strlen(sapi_module.name) >= 3 && 0 == strncmp("cli", sapi_module.name, 3)) { \
712+
if (0 == strncmp("cli", sapi_module.name, 3)) { \
713713
get_callbacks = (get_cli_shell_callbacks)GetProcAddress(hMod, "php_cli_get_shell_callbacks"); \
714714
if (get_callbacks) { \
715715
(cb) = get_callbacks(); \

0 commit comments

Comments
 (0)