summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-03 20:57:48 -0400
committermidipix <writeonce@midipix.org>2016-04-04 18:04:44 -0400
commitb1f9773c9f2e22980e7835813e29c5866287336c (patch)
tree79be02026863cf840a0e67d95836722410a4b05c /src/logic/slbt_exec_ctx.c
parent62a7c9c2e97f6f8ce1f3a0b19bd085eba648182a (diff)
downloadslibtool-b1f9773c9f2e22980e7835813e29c5866287336c.tar.bz2
slibtool-b1f9773c9f2e22980e7835813e29c5866287336c.tar.xz
execution context: add missing argument vector sentinel.
Diffstat (limited to 'src/logic/slbt_exec_ctx.c')
-rw-r--r--src/logic/slbt_exec_ctx.c2
1 files changed, 2 insertions, 0 deletions
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;
}