summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logic/slbt_exec_ctx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index cc5e9b6..f1b6b75 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -10,6 +10,7 @@
#include <string.h>
#include <slibtool/slibtool.h>
+#include "slibtool_errinfo_impl.h"
#define SLBT_ARGV_SPARE_PTRS 16
@@ -154,7 +155,7 @@ int slbt_get_exec_ctx(
/* alloc */
if (!(ictx = slbt_exec_ctx_alloc(dctx)))
- return -1;
+ return SLBT_NESTED_ERROR(dctx);
/* init with guard for later .lo check */
ch = ictx->args + strlen(".lo");