diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2017-07-19 15:13:33 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2017-07-19 15:13:33 +0300 |
commit | 735025d700d2091c92146cb28fa1d630a38df456 (patch) | |
tree | 755e80bb7de16fdb2feac58f6a85373f9bc5431d /cluster_library.c | |
parent | ea15ce24cd45072702a7c841593d14e800a1aeac (diff) |
Fix some static analyzer warnings
Two types of warnings were fixed in this commit:
1. The left operand of '<=' is a garbage value
2. Function call argument is an uninitialized value
Diffstat (limited to 'cluster_library.c')
-rw-r--r-- | cluster_library.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cluster_library.c b/cluster_library.c index c1efd0db..34c3442e 100644 --- a/cluster_library.c +++ b/cluster_library.c @@ -2074,6 +2074,7 @@ PHP_REDIS_API void cluster_client_list_resp(INTERNAL_FUNCTION_PARAMETERS, redisC PHP_REDIS_API zval *cluster_zval_mbulk_resp(INTERNAL_FUNCTION_PARAMETERS, redisCluster *c, int pull, mbulk_cb cb, zval *z_ret) { + ZVAL_NULL(z_ret); // Pull our next response if directed if(pull) { if(cluster_check_response(c, &c->reply_type TSRMLS_CC)<0) |