From: Xinchen Hui Date: Fri, 15 May 2015 16:33:49 +0000 (+0800) Subject: Fixed segfault X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~42^2~65^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eab211379d7a7be0c9fd0d9f1207c3c8660612b;p=php Fixed segfault --- diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 31fe18db02..f3d51a4d0f 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -827,7 +827,7 @@ PHP_FUNCTION(inflate_init) zend_long encoding, window = 15; char *dict = NULL; size_t dictlen = 0; - HashTable *options; + HashTable *options = NULL; zval *option_buffer; if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|H", &encoding, &options)) { @@ -997,7 +997,7 @@ PHP_FUNCTION(deflate_init) zend_long encoding, level = -1, memory = 8, window = 15, strategy = Z_DEFAULT_STRATEGY; char *dict = NULL; size_t dictlen = 0; - HashTable *options = 0; + HashTable *options = NULL; zval *option_buffer; if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|H", &encoding, &options)) {