Fix conditional in XGROUP.

This commit is contained in:
antirez 2018-10-17 13:00:35 +02:00
parent ad78b50f62
commit fdb575993f

View File

@ -1716,7 +1716,7 @@ NULL
} }
/* Everything but the "HELP" option requires a key and group name. */ /* Everything but the "HELP" option requires a key and group name. */
if (c->argc > 4) { if (c->argc >= 4) {
o = lookupKeyWrite(c->db,c->argv[2]); o = lookupKeyWrite(c->db,c->argv[2]);
if (o) s = o->ptr; if (o) s = o->ptr;
grpname = c->argv[3]->ptr; grpname = c->argv[3]->ptr;