summaryrefslogtreecommitdiffhomepage
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index e483ced..5ffbc29 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -676,18 +676,16 @@ int slbt_exec_link(
return -1;
}
- ret = fprintf(fout,
- "# slibtool (pre-alpha) generated file\n\n");
-
/* wrapper symlink */
if (slbt_exec_link_create_symlink(
dctx,ectx,
output,
ectx->lafilename,
- true)) {
- slbt_free_exec_ctx(actx);
- return -1;
- }
+ true))
+ ret = -1;
+ else
+ ret = fprintf(fout,
+ "# slibtool (pre-alpha) generated file\n\n");
/* all done */
fclose(fout);