From: Rasmus Lerdorf Date: Sat, 6 Aug 2011 21:10:29 +0000 (+0000) Subject: Fix another Coverity warning by initializing this to NULL prior to the strtok_r call X-Git-Tag: php-5.4.0beta1~514 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6379f87b313561a0c068723659ac35ad732ed15b;p=php Fix another Coverity warning by initializing this to NULL prior to the strtok_r call --- 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);