]> granicus.if.org Git - php/commitdiff
Fix another Coverity warning by initializing this to NULL prior to the strtok_r call
authorRasmus Lerdorf <rasmus@php.net>
Sat, 6 Aug 2011 21:10:29 +0000 (21:10 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sat, 6 Aug 2011 21:10:29 +0000 (21:10 +0000)
main/php_ini.c

index 53e5cfc8d2dfb5b1c44b02421c138a27a66fb29b..b36bda3fa7bf27be53059e15d7d53bd608bb3432 100644 (file)
@@ -486,7 +486,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);