]> git.saurik.com Git - redis.git/commitdiff
fixed a bug in RENAME getKeys() function
authorantirez <antirez@gmail.com>
Mon, 28 Mar 2011 16:46:22 +0000 (18:46 +0200)
committerantirez <antirez@gmail.com>
Mon, 28 Mar 2011 16:46:22 +0000 (18:46 +0200)
src/db.c

index 7a9c9c4cdef7f56d6c12d3a06ef041d81d52c77c..fea2f12ec72019ae7bbc1a8f593124b312a5906a 100644 (file)
--- a/src/db.c
+++ b/src/db.c
@@ -666,7 +666,7 @@ int *renameGetKeys(struct redisCommand *cmd,robj **argv, int argc, int *numkeys,
         int *keys = zmalloc(sizeof(int));
         *numkeys = 1;
         keys[0] = 1;
-        return NULL;
+        return keys;
     } else {
         return getKeysUsingCommandTable(cmd,argv,argc,numkeys);
     }