From 85f619d7a434e9d72ad9efa622127a996546646b Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 21 Oct 2018 21:31:46 -0400 Subject: slbt_exec_link_finalize_argument_vector(): remove redundant -L arguments. --- src/logic/slbt_exec_link.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index ed45d67..d5ebf71 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -693,6 +693,20 @@ static int slbt_exec_link_finalize_argument_vector( } } + /* -L argument? */ + } else if ((parg[0][0] == '-') && (parg[0][1] == 'L')) { + /* find a previous occurence of this -L argument */ + for (rarg=0, larg=aargv; !rarg && (larg