mirror of
https://github.com/sgmarz/osblog.git
synced 2024-11-23 18:06:20 +04:00
Fixed looping bug
This commit is contained in:
parent
99b98111a4
commit
c4b824dfa7
@ -89,7 +89,7 @@ pub fn kzmalloc(sz: usize) -> *mut u8 {
|
||||
|
||||
for i in 0..size {
|
||||
unsafe {
|
||||
(*ret) = 0;
|
||||
(*ret.add(i)) = 0;
|
||||
}
|
||||
}
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user