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

Skip to content

Commit 297d83e

Browse files
committed
redis.c:2394:7: warning: variable 'nb_keys' set but not used
1 parent 0d725ed commit 297d83e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

redis.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2391,12 +2391,7 @@ PHPAPI int generic_multiple_args_cmd(INTERNAL_FUNCTION_PARAMETERS, char *keyword
23912391
real_argc++;
23922392
}
23932393
} else {
2394-
int nb_keys;
2395-
if(!has_timeout) {
2396-
nb_keys = argc;
2397-
} else if(has_timeout && Z_TYPE_P(z_args[argc - 1]) == IS_LONG) {
2398-
nb_keys = argc - 1;
2399-
} else {
2394+
if(has_timeout && Z_TYPE_P(z_args[argc - 1]) != IS_LONG) {
24002395
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Syntax error on timeout");
24012396
}
24022397

0 commit comments

Comments
 (0)