aboutsummaryrefslogtreecommitdiffstats
path: root/libdwfl/argp-std.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdwfl/argp-std.c')
-rw-r--r--libdwfl/argp-std.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdwfl/argp-std.c b/libdwfl/argp-std.c
index 8ee91587..2aa1b5e0 100644
--- a/libdwfl/argp-std.c
+++ b/libdwfl/argp-std.c
@@ -342,7 +342,8 @@ parse_opt (int key, char *arg, struct argp_state *state)
argp_parse. */
int result = INTUSE(dwfl_report_end) (dwfl, NULL, NULL);
- assert (result == 0);
+ if (result != 0)
+ return fail (dwfl, -1, arg, state);
/* Update the input all along, so a parent parser can see it.
As we free OPT the update below will be no longer active. */