perror: don't overwrite rax if rax=0 (mov rax,r9 before .quit)

This commit is contained in:
2025-07-22 15:57:53 +02:00
parent bc5e6e2342
commit 19cea5642b

View File

@@ -210,6 +210,6 @@ perror:
mov rdi, FD_stderr
mov rsi, r10
syscall
.quit:
mov rax, r9
.quit:
ret