Skip to content

Commit

Permalink
Use precomputed length for phpdbg_try_file_init()
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Dec 18, 2023
1 parent 6991518 commit b198d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sapi/phpdbg/phpdbg_prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, bool use_default) /* {{{
}

ZEND_IGNORE_VALUE(asprintf(&init_file, "%s/%s", scan_dir, PHPDBG_INIT_FILENAME));
phpdbg_try_file_init(init_file, strlen(init_file), 0);
phpdbg_try_file_init(init_file, init_file_len, 0);
free(init_file);
if (i == -1) {
break;
Expand Down

0 comments on commit b198d0c

Please sign in to comment.