MEMORY command: make strcasecmp() conditional like the following.

This commit is contained in:
antirez 2018-11-06 18:15:51 +01:00
parent 249cd9381d
commit 560cdf359f

View File

@ -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.",