From: antirez Date: Mon, 28 Mar 2011 16:21:06 +0000 (+0200) Subject: bug fixed in zunionstore specific getKeys() implementation X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/6e1b9b58ec6ae895da686015d82d4f121f1bfb85 bug fixed in zunionstore specific getKeys() implementation --- diff --git a/src/db.c b/src/db.c index 5bab42af..7a9c9c4c 100644 --- a/src/db.c +++ b/src/db.c @@ -684,7 +684,7 @@ int *zunionInterGetKeys(struct redisCommand *cmd,robj **argv, int argc, int *num *numkeys = 0; return NULL; } - keys = zmalloc(num); + keys = zmalloc(sizeof(int)*num); for (i = 0; i < num; i++) keys[i] = 3+i; *numkeys = num; return keys;