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

Skip to content

Commit 83053ea

Browse files
committed
warning: variable 'redis_inst' set but not used (compiler can't check logic here)
1 parent e3b2a46 commit 83053ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static void
264264
ra_forward_call(INTERNAL_FUNCTION_PARAMETERS, RedisArray *ra, const char *cmd, int cmd_len, zval *z_args, zval *z_new_target) {
265265

266266
zval **zp_tmp, z_tmp;
267-
char *key;
267+
char *key = NULL; // set to avoid "unused-but-set-variable"
268268
int key_len;
269269
int i;
270270
zval *redis_inst;

0 commit comments

Comments
 (0)