From 591b69c745f8d8a9cff7a43083c3b0d0ac333362 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 9 Oct 2014 11:17:27 +0200 Subject: [PATCH] Fix DEBUG POPULATE warning for lack of casting. --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index 68878385..d566f716 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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);