Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redis_sentinel.c17
-rw-r--r--sentinel_library.c1
2 files changed, 17 insertions, 1 deletions
diff --git a/redis_sentinel.c b/redis_sentinel.c
index 77ec0fdd..f4729d78 100644
--- a/redis_sentinel.c
+++ b/redis_sentinel.c
@@ -1,3 +1,20 @@
+/*
+ +----------------------------------------------------------------------+
+ | Copyright (c) The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 3.01 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available through the world-wide-web at the following url: |
+ | http://www.php.net/license/3_01.txt |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Author: Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> |
+ | Maintainer: Michael Grunder <michael.grunder@gmail.com> |
+ +----------------------------------------------------------------------+
+*/
+
#include "php_redis.h"
#include "redis_commands.h"
#include "redis_sentinel.h"
diff --git a/sentinel_library.c b/sentinel_library.c
index bff5725c..bd81e8d8 100644
--- a/sentinel_library.c
+++ b/sentinel_library.c
@@ -54,7 +54,6 @@ sentinel_mbulk_reply_zipped_assoc(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis
for (i = 0; i < nelem; ++i) {
/* redis_mbulk_reply_zipped_raw calls redis_mbulk_reply_zipped
* which puts result into return_value via RETVAL_ZVAL */
- array_init(return_value);
redis_mbulk_reply_zipped_raw(INTERNAL_FUNCTION_PARAM_PASSTHRU, redis_sock, z_tab, ctx);
add_next_index_zval(&z_ret, return_value);
}