]> git.saurik.com Git - redis.git/blobdiff - src/sort.c
prevent (more) commands from Lua scripts
[redis.git] / src / sort.c
index da31b1b538c3d94eef4166571da01afdf4cd3a87..f70810b9baeeef1a66eb4b6500c0f5d25c8e2e17 100644 (file)
@@ -238,7 +238,7 @@ void sortCommand(redisClient *c) {
         dictEntry *setele;
         di = dictGetIterator(set);
         while((setele = dictNext(di)) != NULL) {
-            vector[j].obj = dictGetEntryKey(setele);
+            vector[j].obj = dictGetKey(setele);
             vector[j].u.score = 0;
             vector[j].u.cmpobj = NULL;
             j++;