Skip to content

Commit b198d0c

Browse files
committed
Use precomputed length for phpdbg_try_file_init()
1 parent 6991518 commit b198d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/phpdbg/phpdbg_prompt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, bool use_default) /* {{{
363363
}
364364

365365
ZEND_IGNORE_VALUE(asprintf(&init_file, "%s/%s", scan_dir, PHPDBG_INIT_FILENAME));
366-
phpdbg_try_file_init(init_file, strlen(init_file), 0);
366+
phpdbg_try_file_init(init_file, init_file_len, 0);
367367
free(init_file);
368368
if (i == -1) {
369369
break;

0 commit comments

Comments
 (0)