mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix another Coverity warning by initializing this to NULL prior to the strtok_r call
This commit is contained in:
parent
bc514c8339
commit
1bc34a491c
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ int php_init_config(TSRMLS_D)
|
|||
|
||||
if ((envpath = getenv("PATH")) != NULL) {
|
||||
char *search_dir, search_path[MAXPATHLEN];
|
||||
char *last;
|
||||
char *last = NULL;
|
||||
|
||||
path = estrdup(envpath);
|
||||
search_dir = php_strtok_r(path, ":", &last);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue