Skip to content

Commit 892e48f

Browse files
authored
Fix return value
1 parent ac43894 commit 892e48f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ pub extern fn __rust_allocate_zeroed(size: usize, align: usize) -> *mut u8 {
104104
if !ptr.is_null() {
105105
ptr::write_bytes(ptr, 0, size);
106106
}
107+
ptr
107108
}
108109

109110
/// Rust de-allocation function (c.f. free)

0 commit comments

Comments
 (0)