summaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-10-09 11:17:27 +0200
committerantirez <antirez@gmail.com>2014-10-09 11:17:27 +0200
commit591b69c745f8d8a9cff7a43083c3b0d0ac333362 (patch)
treea041dbe34c237d1797b2ca7c0912dd2274333899 /src/debug.c
parent5f6950caa893921e7cfe3d5b26109f880e060f8f (diff)
downloadredis-591b69c745f8d8a9cff7a43083c3b0d0ac333362.tar.gz
Fix DEBUG POPULATE warning for lack of casting.
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index 68878385f..d566f716d 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);