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
bb9ad32c
"doc/ReplicationHowto.html" did not exist on "81d456450ac42b7cf78367ae3a89af1a543c9ff1"
Commit
bb9ad32c
authored
Oct 09, 2014
by
antirez
Browse files
Fix DEBUG POPULATE warning for lack of casting.
parent
a37f8ec8
Changes
1
Show whitespace changes
Inline
Side-by-side
src/debug.c
View file @
bb9ad32c
...
@@ -336,7 +336,7 @@ void debugCommand(redisClient *c) {
...
@@ -336,7 +336,7 @@ void debugCommand(redisClient *c) {
dictExpand
(
c
->
db
->
dict
,
keys
);
dictExpand
(
c
->
db
->
dict
,
keys
);
for
(
j
=
0
;
j
<
keys
;
j
++
)
{
for
(
j
=
0
;
j
<
keys
;
j
++
)
{
snprintf
(
buf
,
sizeof
(
buf
),
"%s:%lu"
,
snprintf
(
buf
,
sizeof
(
buf
),
"%s:%lu"
,
(
c
->
argc
==
3
)
?
"key"
:
c
->
argv
[
3
]
->
ptr
,
j
);
(
c
->
argc
==
3
)
?
"key"
:
(
char
*
)
c
->
argv
[
3
]
->
ptr
,
j
);
key
=
createStringObject
(
buf
,
strlen
(
buf
));
key
=
createStringObject
(
buf
,
strlen
(
buf
));
if
(
lookupKeyRead
(
c
->
db
,
key
)
!=
NULL
)
{
if
(
lookupKeyRead
(
c
->
db
,
key
)
!=
NULL
)
{
decrRefCount
(
key
);
decrRefCount
(
key
);
...
...
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