Skip to content

Commit

Permalink
Merge pull request #17 from tdameros/fix_ft_strdup
Browse files Browse the repository at this point in the history
fix(ft_strdup): delete errno changes after a malloc error
  • Loading branch information
tdameros authored Aug 15, 2024
2 parents 762a54c + 94abfcd commit 5cf9073
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ft_strdup.s
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5cf9073

Please sign in to comment.