1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00

Use precomputed length for phpdbg_try_file_init()

This commit is contained in:
Niels Dossche
2023-12-18 13:23:55 +01:00
parent 6991518685
commit b198d0cc0c
+1 -1
View File
@@ -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;