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

Skip to content

Commit fa9bfeb

Browse files
committed
redis.c:2699:25: warning: variable 'type' set but not used
1 parent 518599f commit fa9bfeb

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
@@ -2696,10 +2696,9 @@ PHP_METHOD(Redis, sort) {
26962696
char *key;
26972697
unsigned int key_len;
26982698
unsigned long idx;
2699-
int type;
27002699
zval **z_value_pp;
27012700

2702-
type = zend_hash_get_current_key_ex(keytable, &key, &key_len, &idx, 0, NULL);
2701+
zend_hash_get_current_key_ex(keytable, &key, &key_len, &idx, 0, NULL);
27032702
if(zend_hash_get_current_data(keytable, (void**)&z_value_pp) == FAILURE) {
27042703
continue; /* this should never happen, according to the PHP people. */
27052704
}

0 commit comments

Comments
 (0)