mirror of
https://github.com/fluencelabs/redis
synced 2025-03-31 23:01:03 +00:00
Fix DEBUG POPULATE warning for lack of casting.
This commit is contained in:
parent
5f6950caa8
commit
591b69c745
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user