1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-26 20:31:03 +00:00

Fix DEBUG POPULATE warning for lack of casting.

This commit is contained in:
antirez 2014-10-09 11:17:27 +02:00
parent 5f6950caa8
commit 591b69c745

@ -336,7 +336,7 @@ void debugCommand(redisClient *c) {
dictExpand(c->db->dict,keys);
for (j = 0; j < keys; j++) {
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));
if (lookupKeyRead(c->db,key) != NULL) {
decrRefCount(key);