Commit 4c4f50e1 authored by antirez's avatar antirez
Browse files

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

parent a7b46e0e
...@@ -1287,8 +1287,7 @@ NULL ...@@ -1287,8 +1287,7 @@ NULL
void memoryCommand(client *c) { void memoryCommand(client *c) {
robj *o; 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[] = { const char *help[] = {
"DOCTOR - Return memory problems reports.", "DOCTOR - Return memory problems reports.",
"MALLOC-STATS -- Return internal statistics report from the memory allocator.", "MALLOC-STATS -- Return internal statistics report from the memory allocator.",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment