"vscode:/vscode.git/clone" did not exist on "5d5fe340e004e723f5dde86ebde56f6d29675a85"
Commit cf7a1386 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Explicitly zero zval since it is stored on the stack

parent edfd6ae7
...@@ -1515,6 +1515,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) { ...@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment