]> granicus.if.org Git - php/commitdiff
Fixed segfault
authorXinchen Hui <laruence@php.net>
Fri, 15 May 2015 16:33:49 +0000 (00:33 +0800)
committerXinchen Hui <laruence@php.net>
Fri, 15 May 2015 16:33:49 +0000 (00:33 +0800)
ext/zlib/zlib.c

index 31fe18db021842e3d5b2ddfa6c0bf7db2da46489..f3d51a4d0f8318e15512b1bc32b26a8b2412879b 100644 (file)
@@ -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)) {