From 560cdf359f8a600358a7221c469d7085751d054b Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 6 Nov 2018 18:15:51 +0100 Subject: [PATCH] MEMORY command: make strcasecmp() conditional like the following. --- src/object.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/object.c b/src/object.c index ce2217392ae..87b32f42832 100644 --- a/src/object.c +++ b/src/object.c @@ -1287,8 +1287,7 @@ NULL void memoryCommand(client *c) { robj *o; - if (c->argc == 2 && !strcasecmp(c->argv[1]->ptr,"help")) { - + if (!strcasecmp(c->argv[1]->ptr,"help") && c->argc == 2) { const char *help[] = { "DOCTOR - Return memory problems reports.", "MALLOC-STATS -- Return internal statistics report from the memory allocator.",