From: Remi Collet Date: Tue, 2 Dec 2014 06:41:35 +0000 (+0100) Subject: fix string is optional, set default length, thanks laruence X-Git-Tag: PRE_NATIVE_TLS_MERGE~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9aabfeb6c40f97c473d41057199c7818c2cf96ce;p=php fix string is optional, set default length, thanks laruence --- 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)