Commit 6e1b9b58 authored by antirez's avatar antirez
Browse files

bug fixed in zunionstore specific getKeys() implementation

parent b4b51446
...@@ -684,7 +684,7 @@ int *zunionInterGetKeys(struct redisCommand *cmd,robj **argv, int argc, int *num ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment