This commit is contained in:
gingerBill
2022-09-22 12:21:43 +01:00
parent 7f601c9535
commit c767d55e9a

View File

@@ -604,7 +604,7 @@ access :: proc(path: string, mask: int) -> (bool, Errno) {
}
heap_alloc :: proc(size: int, zero_memory := true) -> rawptr {
if zero <= 0 {
if size <= 0 {
return nil
}
if zero_memory {