From 6379f87b313561a0c068723659ac35ad732ed15b Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sat, 6 Aug 2011 21:10:29 +0000 Subject: [PATCH] Fix another Coverity warning by initializing this to NULL prior to the strtok_r call --- main/php_ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/php_ini.c b/main/php_ini.c index 48e0654441..7d7c26012e 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -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); -- 2.50.1