From 94abfcd75ae1e988bfb4828fecc38fb06ca36a5b Mon Sep 17 00:00:00 2001 From: tdameros Date: Thu, 15 Aug 2024 23:37:34 +0200 Subject: [PATCH] fix(ft_strdup): delete errno changes after a malloc error --- src/ft_strdup.s | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ft_strdup.s b/src/ft_strdup.s index 00c525b..e93d066 100644 --- a/src/ft_strdup.s +++ b/src/ft_strdup.s @@ -23,9 +23,4 @@ ft_strdup: ret .malloc_error: - neg rax - mov rdi, rax - call __errno_location wrt ..plt - mov [rax], rdi - xor rax, rax ret