1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-18 00:20:50 +00:00

Explicitly zero zval since it is stored on the stack

This commit is contained in:
Pieter Noordhuis 2011-04-06 16:39:18 +02:00
parent d4d3a70da2
commit 02e6006532

@ -1515,6 +1515,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
dstobj = createZsetObject(); dstobj = createZsetObject();
dstzset = dstobj->ptr; dstzset = dstobj->ptr;
memset(&zval, 0, sizeof(zval));
if (op == REDIS_OP_INTER) { if (op == REDIS_OP_INTER) {
/* Skip everything if the smallest input is empty. */ /* Skip everything if the smallest input is empty. */