Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eccffe5

Browse files
committed
redis.c:4650:23: warning: variable 'hval_len' set but not used
1 parent fa28264 commit eccffe5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

redis.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4647,7 +4647,7 @@ PHPAPI void array_zip_values_and_scores(RedisSock *redis_sock, zval *z_tab, int
46474647

46484648
char *tablekey, *hkey, *hval;
46494649
unsigned int tablekey_len;
4650-
int hkey_len, hval_len;
4650+
int hkey_len;
46514651
unsigned long idx;
46524652
zval **z_key_pp, **z_value_pp;
46534653

@@ -4672,7 +4672,6 @@ PHPAPI void array_zip_values_and_scores(RedisSock *redis_sock, zval *z_tab, int
46724672

46734673
/* get current value, a hash value now. */
46744674
hval = Z_STRVAL_PP(z_value_pp);
4675-
hval_len = Z_STRLEN_PP(z_value_pp);
46764675

46774676
if(use_atof) { /* zipping a score */
46784677
add_assoc_double_ex(z_ret, hkey, 1+hkey_len, atof(hval));

0 commit comments

Comments
 (0)