Fix another Coverity warning by initializing this to NULL prior to the strtok_r call

This commit is contained in:
Rasmus Lerdorf 2011-08-06 21:10:29 +00:00
parent bc514c8339
commit 1bc34a491c

View file

@ -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);