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-08-15 14:35:02 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-08-15 15:24:06 +0300
commit42f1c9779b969c76cec9c780a4cdf6b36e1eab50 (patch)
tree3d3ac4bd3fc584eac242c6495fee2d569429943e /common.h
parent658ee37410310a21ab972f175ec9aa088787c23e (diff)
Fix static analyzer warnings
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/common.h b/common.h
index 51f4055c..c9c78ac4 100644
--- a/common.h
+++ b/common.h
@@ -40,7 +40,7 @@ typedef struct {
) { \
zend_string _zstr = {0}; \
char *_str_index; uint _str_length; ulong _num_index; \
- _val = zend_hash_get_current_data_ex(ht, &_hpos); \
+ _h = 0; _key = NULL; _val = zend_hash_get_current_data_ex(ht, &_hpos); \
switch (zend_hash_get_current_key_ex(ht, &_str_index, &_str_length, &_num_index, 0, &_hpos)) { \
case HASH_KEY_IS_STRING: \
_zstr.len = _str_length - 1; \
@@ -48,7 +48,6 @@ typedef struct {
_key = &_zstr; \
break; \
case HASH_KEY_IS_LONG: \
- _key = NULL; \
_h = _num_index; \
break; \
default: \