Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4c4f50e1
Commit
4c4f50e1
authored
Nov 06, 2018
by
antirez
Browse files
MEMORY command: make strcasecmp() conditional like the following.
parent
a7b46e0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
4c4f50e1
...
@@ -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."
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment