gingerBill 2 years ago
parent
commit
c767d55e9a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/os_freebsd.odin

+ 1 - 1
core/os/os_freebsd.odin

@@ -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 {