From 9b2d44e63fb36096750664072b68d1f2002df3ac 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 3ccacdc1..298414f8 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -763,7 +763,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 9d3a7902..1ff289ce 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -2211,7 +2211,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); }