perror: don't overwrite rax if rax=0 (mov rax,r9 before .quit)
This commit is contained in:
@@ -210,6 +210,6 @@ perror:
|
|||||||
mov rdi, FD_stderr
|
mov rdi, FD_stderr
|
||||||
mov rsi, r10
|
mov rsi, r10
|
||||||
syscall
|
syscall
|
||||||
.quit:
|
|
||||||
mov rax, r9
|
mov rax, r9
|
||||||
|
.quit:
|
||||||
ret
|
ret
|
||||||
|
Reference in New Issue
Block a user