X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b70d355521fd02737c4de2a1583025699f1554f8..5fa95ad7639ae3f43e175d95a7d6384e4723b80e:/src/t_hash.c diff --git a/src/t_hash.c b/src/t_hash.c index 5745f88c..071b7754 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -249,7 +249,7 @@ void hmsetCommand(redisClient *c) { robj *o; if ((c->argc % 2) == 1) { - addReplySds(c,sdsnew("-ERR wrong number of arguments for HMSET\r\n")); + addReplyError(c,"wrong number of arguments for HMSET"); return; } @@ -310,6 +310,7 @@ void hmgetCommand(redisClient *c) { o = lookupKeyRead(c->db,c->argv[1]); if (o != NULL && o->type != REDIS_HASH) { addReply(c,shared.wrongtypeerr); + return; } /* Note the check for o != NULL happens inside the loop. This is