From 6e1b9b58ec6ae895da686015d82d4f121f1bfb85 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 28 Mar 2011 18:21:06 +0200 Subject: [PATCH] bug fixed in zunionstore specific getKeys() implementation --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2