From 54670c8f05ba21086447c3ed73ebd8f9bce2f8d2 Mon Sep 17 00:00:00 2001 From: Ferenc Kovacs Date: Mon, 12 Oct 2015 21:36:21 +0200 Subject: [PATCH] initialize *str --- ext/standard/basic_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 7d0e1bfbf0..2ac9ce3800 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -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) { -- 2.40.0