From bb2df795e020fb16bdcc7fc5690aea8e0c8e74f1 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 28 Oct 2013 13:20:03 +0100 Subject: [PATCH] Aesthetic fix (missing space) into HSCAN and ZSCAN implementations. Thanks to @badboy for reporting. --- src/t_hash.c | 2 +- src/t_zset.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/t_hash.c b/src/t_hash.c index 0c5e7af7..23fe487b 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -766,7 +766,7 @@ void hexistsCommand(redisClient *c) { void hscanCommand(redisClient *c) { robj *o; - if ((o= lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL || + if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL || checkType(c,o,REDIS_HASH)) return; scanGenericCommand(c,o); } diff --git a/src/t_zset.c b/src/t_zset.c index 9178bf55..809fae59 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -2208,7 +2208,7 @@ void zrevrankCommand(redisClient *c) { void zscanCommand(redisClient *c) { robj *o; - if ((o= lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL || + if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL || checkType(c,o,REDIS_ZSET)) return; scanGenericCommand(c,o); }