diff options
author | Remi Collet <remi@php.net> | 2014-12-02 07:41:35 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2014-12-02 07:41:35 +0100 |
commit | 9aabfeb6c40f97c473d41057199c7818c2cf96ce (patch) | |
tree | c5ab041c294f9cadb8517d6c5f59de0a16618608 /ext/standard/head.c | |
parent | 67fc5d6bbb9bd07512d7e0a6866388287a7f9223 (diff) | |
download | php-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.c | 2 |
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) |