From 19cea5642b71e5f512ec8f762ea8d3afaf1f6588 Mon Sep 17 00:00:00 2001 From: Kwarde Date: Tue, 22 Jul 2025 15:57:53 +0200 Subject: [PATCH] perror: don't overwrite rax if rax=0 (mov rax,r9 before .quit) --- src/perror.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/perror.asm b/src/perror.asm index 19b31c3..d3bab51 100644 --- a/src/perror.asm +++ b/src/perror.asm @@ -210,6 +210,6 @@ perror: mov rdi, FD_stderr mov rsi, r10 syscall - .quit: mov rax, r9 + .quit: ret