]> granicus.if.org Git - php/commitdiff
initialize *str
authorFerenc Kovacs <tyrael@php.net>
Mon, 12 Oct 2015 19:36:21 +0000 (21:36 +0200)
committerFerenc Kovacs <tyrael@php.net>
Mon, 12 Oct 2015 19:36:21 +0000 (21:36 +0200)
ext/standard/basic_functions.c

index 7d0e1bfbf0d55f89e65c1a5c9c703172d25930fe..2ac9ce38009e9d9c067f42dcdf338be4402a576a 100644 (file)
@@ -4014,7 +4014,7 @@ PHP_FUNCTION(long2ip)
    if no varname is present  */
 PHP_FUNCTION(getenv)
 {
-       char *ptr, *str;
+       char *ptr, *str = NULL;
        size_t str_len;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &str, &str_len) == FAILURE) {