diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-04-06 16:39:18 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-04-06 16:39:22 +0200 |
commit | 02e600653216cebc0746bfbb86b353667a843591 (patch) | |
tree | 3b5808967095da4d2ccf345d7b80398361815f54 /src/t_zset.c | |
parent | d4d3a70da2c9be4c5aa67a0be735568dbe436568 (diff) | |
download | redis-02e600653216cebc0746bfbb86b353667a843591.tar.gz |
Explicitly zero zval since it is stored on the stack
Diffstat (limited to 'src/t_zset.c')
-rw-r--r-- | src/t_zset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/t_zset.c b/src/t_zset.c index 929714ca6..7ce60349f 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -1515,6 +1515,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) { dstobj = createZsetObject(); dstzset = dstobj->ptr; + memset(&zval, 0, sizeof(zval)); if (op == REDIS_OP_INTER) { /* Skip everything if the smallest input is empty. */ |