]> git.saurik.com Git - redis.git/commitdiff
Explicitly zero zval since it is stored on the stack
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Wed, 6 Apr 2011 14:39:18 +0000 (16:39 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Wed, 6 Apr 2011 14:39:22 +0000 (16:39 +0200)
src/t_zset.c

index 929714ca6afc161abed5712bc90abdcc30177e46..7ce60349fb5567da5343267a4381a808d92ac0e2 100644 (file)
@@ -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. */