summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/bionic/__bionic_clone.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-x86/bionic/__bionic_clone.S')
-rw-r--r--libc/arch-x86/bionic/__bionic_clone.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/arch-x86/bionic/__bionic_clone.S b/libc/arch-x86/bionic/__bionic_clone.S
index 7c972de..672512c 100644
--- a/libc/arch-x86/bionic/__bionic_clone.S
+++ b/libc/arch-x86/bionic/__bionic_clone.S
@@ -25,8 +25,8 @@ ENTRY(__bionic_clone)
int $0x80
# Check result.
- cmpl $0, %eax
- je .L_bc_child
+ testl %eax, %eax
+ jz .L_bc_child
jg .L_bc_parent
# An error occurred, so set errno and return -1.
@@ -44,7 +44,7 @@ ENTRY(__bionic_clone)
hlt
.L_bc_parent:
- # we're the parent; nothing to do.
+ # We're the parent; nothing to do.
.L_bc_return:
popl %edi
popl %esi