mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
bug fixed in zunionstore specific getKeys() implementation
This commit is contained in:
parent
b4b5144694
commit
6e1b9b58ec
2
src/db.c
2
src/db.c
@ -684,7 +684,7 @@ int *zunionInterGetKeys(struct redisCommand *cmd,robj **argv, int argc, int *num
|
|||||||
*numkeys = 0;
|
*numkeys = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
keys = zmalloc(num);
|
keys = zmalloc(sizeof(int)*num);
|
||||||
for (i = 0; i < num; i++) keys[i] = 3+i;
|
for (i = 0; i < num; i++) keys[i] = 3+i;
|
||||||
*numkeys = num;
|
*numkeys = num;
|
||||||
return keys;
|
return keys;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user