removed UB

wip/its-not-my-fault
ondra05 2023-06-20 19:00:23 +02:00
parent 210339c74b
commit 3e54734b90
No known key found for this signature in database
GPG Key ID: 0DA6D2BB2285E881
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ impl Memory {
let mut entry = PtEntry::new(
{
let layout = alloc::alloc::Layout::from_size_align_unchecked(4096, 4096);
let ptr = alloc::alloc::alloc(layout);
let ptr = alloc::alloc::alloc_zeroed(layout);
if ptr.is_null() {
alloc::alloc::handle_alloc_error(layout);
}