aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-09 00:00:24 +0200
committerGitHub <noreply@github.com>2025-06-09 00:00:24 +0200
commit7813e9fb378753bf110f0ad4b5cc85e7f16336d4 (patch)
treee9e352e36435842a016cfb3d559fa9df3f6611c6 /core/sys
parentd2d187eaaa4fecd33bf654dcd9013ca2ddbdef5b (diff)
parent0747032e4a836a4295538d2c4945f2610ad2e615 (diff)
Merge pull request #5300 from Feoramund/fix-5299
Guard against untyped `nil` in type cycle and type info sections
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/linux/sys.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin
index f28a5fdb2..deb22726f 100644
--- a/core/sys/linux/sys.odin
+++ b/core/sys/linux/sys.odin
@@ -1413,8 +1413,7 @@ umask :: proc "contextless" (mask: Mode) -> Mode {
Available since Linux 1.0.
*/
gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) {
- null: uintptr
- ret := syscall(SYS_gettimeofday, tv, null)
+ ret := syscall(SYS_gettimeofday, tv, rawptr(nil))
return Errno(-ret)
}