diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2017-08-15 14:35:02 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2017-08-15 15:24:06 +0300 |
commit | 42f1c9779b969c76cec9c780a4cdf6b36e1eab50 (patch) | |
tree | 3d3ac4bd3fc584eac242c6495fee2d569429943e /common.h | |
parent | 658ee37410310a21ab972f175ec9aa088787c23e (diff) |
Fix static analyzer warnings
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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: \ |