summaryrefslogtreecommitdiff
path: root/main/php_ini.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2011-08-06 21:10:29 +0000
committerRasmus Lerdorf <rasmus@php.net>2011-08-06 21:10:29 +0000
commit1bc34a491cae760b0b18ede16fbb672620ee749d (patch)
treefda9ea9909db42402a5e6e6c356a26ce9f9da12d /main/php_ini.c
parentbc514c8339bf24776102df9763c0a9fd9c4fb47c (diff)
downloadphp-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.c2
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);