summaryrefslogtreecommitdiff
path: root/ext/standard/head.c
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2014-12-02 07:41:35 +0100
committerRemi Collet <remi@php.net>2014-12-02 07:41:35 +0100
commit9aabfeb6c40f97c473d41057199c7818c2cf96ce (patch)
treec5ab041c294f9cadb8517d6c5f59de0a16618608 /ext/standard/head.c
parent67fc5d6bbb9bd07512d7e0a6866388287a7f9223 (diff)
downloadphp-git-9aabfeb6c40f97c473d41057199c7818c2cf96ce.tar.gz
fix string is optional, set default length, thanks laruence
Diffstat (limited to 'ext/standard/head.c')
-rw-r--r--ext/standard/head.c2
1 files changed, 1 insertions, 1 deletions
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)