MEMORY command: make strcasecmp() conditional like the following.
This commit is contained in:
parent
249cd9381d
commit
560cdf359f
@ -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.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user