summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/slibtool/slibtool.h1
-rw-r--r--src/logic/slbt_exec_ctx.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index c5100b9..b084eae 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -92,6 +92,7 @@ struct slbt_exec_ctx {
char ** fpic;
char ** cass;
char ** lout[2];
+ char ** sentinel;
char * csrc;
char * ldirname;
char * lbasename;
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index c7b2eb5..5529c0e 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -222,6 +222,7 @@ int slbt_get_exec_ctx(
ictx->ctx.lout[0] = &ictx->ctx.argv[i++];
ictx->ctx.lout[1] = &ictx->ctx.argv[i++];
+ ictx->ctx.sentinel= &ictx->ctx.argv[i++];
slbt_reset_placeholders(&ictx->ctx);
@@ -335,4 +336,5 @@ void slbt_reset_placeholders(struct slbt_exec_ctx * ectx)
*ectx->lout[0] = "-USLIBTOOL_PLACEHOLDER_OUTPUT_SWITCH";
*ectx->lout[1] = "-USLIBTOOL_PLACEHOLDER_OUTPUT_FILE";
+ *ectx->sentinel= 0;
}