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:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-07-19 15:13:33 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-07-19 15:13:33 +0300
commit735025d700d2091c92146cb28fa1d630a38df456 (patch)
tree755e80bb7de16fdb2feac58f6a85373f9bc5431d /redis_array_impl.c
parentea15ce24cd45072702a7c841593d14e800a1aeac (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 'redis_array_impl.c')
-rw-r--r--redis_array_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis_array_impl.c b/redis_array_impl.c
index 0735ab7e..2d482144 100644
--- a/redis_array_impl.c
+++ b/redis_array_impl.c
@@ -300,7 +300,7 @@ RedisArray *ra_load_array(const char *name TSRMLS_DC) {
}
/* find read timeout option */
- array_init(&z_params_connect_timeout);
+ array_init(&z_params_read_timeout);
if ((iptr = INI_STR("redis.arrays.readtimeout")) != NULL) {
sapi_module.treat_data(PARSE_STRING, estrdup(iptr), &z_params_read_timeout TSRMLS_CC);
}