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 | 1bc34a491cae760b0b18ede16fbb672620ee749d (patch) | |
tree | fda9ea9909db42402a5e6e6c356a26ce9f9da12d /main/php_ini.c | |
parent | bc514c8339bf24776102df9763c0a9fd9c4fb47c (diff) | |
download | php-git-1bc34a491cae760b0b18ede16fbb672620ee749d.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); |