commit e4c3067617f4be4563a293d58b173742e5b5d0fd (tree)
parent f7721ac37cbb38c2f27d51f91eab776c5aca9767
Author: LemonBoy <thatlemon@gmail.com>
Date: Mon, 9 Sep 2019 19:50:46 +0200
Fix typo in TLS initialization code
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/std/os/linux/tls.zig b/std/os/linux/tls.zig
@@ -141,7 +141,7 @@ pub fn initTLS() void {
elf.AT_PHENT => at_phent = auxv[i].a_un.a_val,
elf.AT_PHNUM => at_phnum = auxv[i].a_un.a_val,
elf.AT_PHDR => at_phdr = auxv[i].a_un.a_val,
- elf.AT_HWCAP => at_phdr = auxv[i].a_un.a_val,
+ elf.AT_HWCAP => at_hwcap = auxv[i].a_un.a_val,
else => continue,
}
}