Commit 587f3e0d authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-12353: Fix a warning in RelWithDebInfo build

page_zip_clear_rec(): Explicitly initialize len
in non-debug builds to avoid a warning about possibly
invalid memset() length.
parent 51a9dd67
......@@ -4113,6 +4113,7 @@ page_zip_clear_rec(
ut_ad(!rec_offs_any_extern(offsets));
memset(field, 0, REC_NODE_PTR_SIZE);
storage -= (heap_no - 1) * REC_NODE_PTR_SIZE;
len = REC_NODE_PTR_SIZE;
clear_page_zip:
memset(storage, 0, len);
mtr->memset(*block, storage - page_zip->data, len, 0);
......
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