summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-04-27 15:57:21 +0200
committerUlf Hermann <[email protected]>2017-04-27 14:52:47 +0000
commitf10810fff6fda147f9c07fea0e1b33a7c4d79ad1 (patch)
tree6f8b6ff55340ccc65171585e9a8823f33c824111
parent8d64db1a6463ae795beba6dd1835c30ff2e956a3 (diff)
Fix nesting of braces
The way it was before it didn't actually test if elf_update failed, but rather did something random. !!(<some number>) is a boolean and boolean true can be represented as anything non-0, including negative numbers. Change-Id: I1c9540d849931fc28aaa806550d178231baa8b9a Reviewed-by: Christian Kandeler <[email protected]>
-rw-r--r--libasm/asm_end.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libasm/asm_end.c b/libasm/asm_end.c
index 191a535a..ced24f50 100644
--- a/libasm/asm_end.c
+++ b/libasm/asm_end.c
@@ -464,7 +464,7 @@ binary_end (AsmCtx_t *ctx)
gelf_update_ehdr (ctx->out.elf, ehdr);
/* Write out the ELF file. */
- if (unlikely (elf_update (ctx->out.elf, ELF_C_WRITE_MMAP)) < 0)
+ if (unlikely (elf_update (ctx->out.elf, ELF_C_WRITE_MMAP) < 0))
{
__libasm_seterrno (ASM_E_LIBELF);
result = -1;