diff options
author | Xinchen Hui <laruence@php.net> | 2015-05-16 00:33:49 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-05-16 00:33:49 +0800 |
commit | 2eab211379d7a7be0c9fd0d9f1207c3c8660612b (patch) | |
tree | c73f142bf568962e6c03ae6930fe13d71f542f14 | |
parent | 249d4c7fdb00d583d4e2b41381df94b62bb16f05 (diff) | |
download | php-git-2eab211379d7a7be0c9fd0d9f1207c3c8660612b.tar.gz |
Fixed segfault
-rw-r--r-- | ext/zlib/zlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |