From 9aabfeb6c40f97c473d41057199c7818c2cf96ce Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 2 Dec 2014 07:41:35 +0100 Subject: [PATCH] fix string is optional, set default length, thanks laruence --- ext/standard/head.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/head.c b/ext/standard/head.c index 28fcb6b686..56f02a3989 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -56,7 +56,7 @@ PHP_FUNCTION(header) PHP_FUNCTION(header_remove) { sapi_header_line ctr = {0}; - size_t len; + size_t len = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &ctr.line, &len) == FAILURE) -- 2.40.0