projects
/
platform
/
upstream
/
elfutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add some patches from the disasm-branch branch.
[platform/upstream/elfutils.git]
/
libasm
/
asm_end.c
diff --git
a/libasm/asm_end.c
b/libasm/asm_end.c
index
74f01f0
..
33191f9
100644
(file)
--- a/
libasm/asm_end.c
+++ b/
libasm/asm_end.c
@@
-33,7
+33,12
@@
static int
text_end (AsmCtx_t *ctx __attribute__ ((unused)))
{
- // XXX Does anything have to be done?
+ if (fclose (ctx->out.file) != 0)
+ {
+ __libasm_seterrno (ASM_E_IOERROR);
+ return -1;
+ }
+
return 0;
}