summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-27 05:41:14 +0000
committermidipix <writeonce@midipix.org>2024-01-27 05:41:14 +0000
commit1ec4068dff686435d1ef0c9a73975f42d6c3b7bf (patch)
tree0116a6deedbb7ed12081ed62b52e9e13b84da110 /src/driver
parentb1d1a03e15a45cd6c32ed16116cb78c614e57f82 (diff)
downloadslibtool-1ec4068dff686435d1ef0c9a73975f42d6c3b7bf.tar.bz2
slibtool-1ec4068dff686435d1ef0c9a73975f42d6c3b7bf.tar.xz
slbt_split_argv(): following altmode adjustments, ensure argv_get() succeeded.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/slbt_driver_ctx.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index dc68114..c733bfc 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -375,6 +375,15 @@ static int slbt_split_argv(
meta = argv_get(argv,optv,ARGV_VERBOSITY_NONE,fderr);
}
+ if (!meta) {
+ if (flags & SLBT_DRIVER_VERBOSITY_ERRORS)
+ argv_get(
+ argv,optv,
+ slbt_argv_flags(flags),
+ fderr);
+ return -1;
+ }
+
/* missing all of --mode, --help, --version, --config, --dumpmachine, --features, and --finish? */
mode = help = version = config = finish = features = ccwrap = dumpmachine = aropt = 0;