Fixing performance regression. Due to the way the hashes work, we must 0 out the whole thing.

This commit is contained in:
Adam Harrison 2022-01-29 15:19:22 -05:00
parent 3d40725b8f
commit af76f544be
1 changed files with 1 additions and 1 deletions

View File

@ -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;