From: Pieter Noordhuis Date: Wed, 6 Apr 2011 14:39:18 +0000 (+0200) Subject: Explicitly zero zval since it is stored on the stack X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/02e600653216cebc0746bfbb86b353667a843591 Explicitly zero zval since it is stored on the stack --- diff --git a/src/t_zset.c b/src/t_zset.c index 929714ca..7ce60349 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. */