summaryrefslogtreecommitdiff
path: root/src/t_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/t_list.c')
-rw-r--r--src/t_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_list.c b/src/t_list.c
index 653337d78..e580139ab 100644
--- a/src/t_list.c
+++ b/src/t_list.c
@@ -554,7 +554,7 @@ void lposCommand(client *c) {
/* We return NULL or an empty array if there is no such key (or
* if we find no matches, depending on the presence of the COUNT option. */
- if ((o = lookupKeyWriteOrReply(c,c->argv[1],NULL)) == NULL) {
+ if ((o = lookupKeyRead(c->db,c->argv[1])) == NULL) {
if (count != -1)
addReply(c,shared.emptyarray);
else