mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
Use asprintf return value for the size
This commit is contained in:
parent
b198d0cc0c
commit
e6e0231a98
@ -343,8 +343,8 @@ void phpdbg_init(char *init_file, size_t init_file_len, bool use_default) /* {{{
|
||||
char *sys_ini;
|
||||
int i;
|
||||
|
||||
ZEND_IGNORE_VALUE(asprintf(&sys_ini, "%s/" PHPDBG_INIT_FILENAME, PHP_CONFIG_FILE_PATH));
|
||||
phpdbg_try_file_init(sys_ini, strlen(sys_ini), 0);
|
||||
size_t sys_ini_length = asprintf(&sys_ini, "%s/" PHPDBG_INIT_FILENAME, PHP_CONFIG_FILE_PATH);
|
||||
phpdbg_try_file_init(sys_ini, sys_ini_length, 0);
|
||||
free(sys_ini);
|
||||
|
||||
if (!scan_dir) {
|
||||
|
Loading…
Reference in New Issue
Block a user