diff options
author | Vladimir Kobal <vlad@prokk.net> | 2022-04-19 09:59:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 09:59:44 +0200 |
commit | 72a5ec6e37d22dd6c7cfe2562ef72bc86025b114 (patch) | |
tree | 34276b86a18cf3aefbc3727dcb8eb7d633882591 /database/engine/journalfile.c | |
parent | fe3bea8a151f2b9d24a5abba78c1cdaafdffab73 (diff) |
Fix Valgrind errors (#12619)
Diffstat (limited to 'database/engine/journalfile.c')
-rw-r--r-- | database/engine/journalfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/database/engine/journalfile.c b/database/engine/journalfile.c index 1541eb10aa..0b3d3eeb84 100644 --- a/database/engine/journalfile.c +++ b/database/engine/journalfile.c @@ -84,6 +84,7 @@ void * wal_get_transaction_buffer(struct rrdengine_worker_config* wc, unsigned s if (unlikely(ret)) { fatal("posix_memalign:%s", strerror(ret)); } + memset(ctx->commit_log.buf, 0, buf_size); buf_pos = ctx->commit_log.buf_pos = 0; ctx->commit_log.buf_size = buf_size; } |