We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dbed61 commit b01bf0eCopy full SHA for b01bf0e
library/std/src/sys/windows/alloc.rs
@@ -148,13 +148,15 @@ unsafe impl GlobalAlloc for System {
148
#[inline]
149
unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
150
// SAFETY: pointers returned by `allocate` satisfy the guarantees of `System`
151
- unsafe { allocate(layout, false) }
+ let zeroed = false;
152
+ unsafe { allocate(layout, zeroed) }
153
}
154
155
156
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
157
- unsafe { allocate(layout, true) }
158
+ let zeroed = true;
159
160
161
162
0 commit comments