From 02e600653216cebc0746bfbb86b353667a843591 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 6 Apr 2011 16:39:18 +0200 Subject: [PATCH] Explicitly zero zval since it is stored on the stack --- src/t_zset.c | 1 + 1 file changed, 1 insertion(+) 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. */ -- 2.45.2