remove unused variable

This commit is contained in:
Pierre Chapuis 2016-06-05 16:09:55 +02:00
parent 3e9c20f63b
commit b670a16282

View File

@ -195,7 +195,7 @@ void listTypeConvert(robj *subject, int enc) {
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
void pushGenericCommand(client *c, int where) { void pushGenericCommand(client *c, int where) {
int j, waiting = 0, pushed = 0; int j, pushed = 0;
robj *lobj = lookupKeyWrite(c->db,c->argv[1]); robj *lobj = lookupKeyWrite(c->db,c->argv[1]);
if (lobj && lobj->type != OBJ_LIST) { if (lobj && lobj->type != OBJ_LIST) {
@ -214,7 +214,7 @@ void pushGenericCommand(client *c, int where) {
listTypePush(lobj,c->argv[j],where); listTypePush(lobj,c->argv[j],where);
pushed++; pushed++;
} }
addReplyLongLong(c, waiting + (lobj ? listTypeLength(lobj) : 0)); addReplyLongLong(c, (lobj ? listTypeLength(lobj) : 0));
if (pushed) { if (pushed) {
char *event = (where == LIST_HEAD) ? "lpush" : "rpush"; char *event = (where == LIST_HEAD) ? "lpush" : "rpush";