mirror of
https://github.com/fluencelabs/redis
synced 2025-03-24 03:20:49 +00:00
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) {
|
||||
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.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user