X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/28c07c7bf80709e7e0be5cac1bbb280cea439272..9ad853ccde374ed371efee3b1654c6ebb39e06fa:/src/redis-cli.c diff --git a/src/redis-cli.c b/src/redis-cli.c index ca70c947..08b3a713 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -414,10 +414,11 @@ static sds cliFormatReplyRaw(redisReply *r) { } static int cliReadReply(int output_raw_strings) { + void *_reply; redisReply *reply; sds out; - if (redisGetReply(context,(void**)&reply) != REDIS_OK) { + if (redisGetReply(context,&_reply) != REDIS_OK) { if (config.shutdown) return REDIS_OK; if (config.interactive) { @@ -431,6 +432,7 @@ static int cliReadReply(int output_raw_strings) { return REDIS_ERR; /* avoid compiler warning */ } + reply = (redisReply*)_reply; if (output_raw_strings) { out = cliFormatReplyRaw(reply); } else {