From af76f544bef0b65245d0ace610517474a5a33299 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sat, 29 Jan 2022 15:19:22 -0500 Subject: [PATCH] Fixing performance regression. Due to the way the hashes work, we must 0 out the whole thing. --- src/rencache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rencache.c b/src/rencache.c index 5d464226..5686d984 100644 --- a/src/rencache.c +++ b/src/rencache.c @@ -95,7 +95,7 @@ static Command* push_command(int type, int size) { return NULL; } command_buf_idx = n; - memset(cmd, 0, COMMAND_BARE_SIZE); + memset(cmd, 0, size); cmd->type = type; cmd->size = size; return cmd;