diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2011-08-06 21:10:29 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2011-08-06 21:10:29 +0000 |
commit | 6379f87b313561a0c068723659ac35ad732ed15b (patch) | |
tree | 2fd2cd57b8628bc38e3588603a4d3fd905ff3efd /main/php_ini.c | |
parent | 75a54edf5a4a7feff02085e1f9fbfdf1a7f27969 (diff) | |
download | php-git-6379f87b313561a0c068723659ac35ad732ed15b.tar.gz |
Fix another Coverity warning by initializing this to NULL prior to the strtok_r call
Diffstat (limited to 'main/php_ini.c')
-rw-r--r-- | main/php_ini.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |