diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-02-25 11:07:50 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-02-25 11:07:50 -0500 |
commit | 5b9bfbbb8caa5a7ef849247f1dabc100e46d4464 (patch) | |
tree | 6a3111136978db3f896ccd40654d1301dbf4ddbc | |
parent | 7b1c49bca18986e94d358d8ebb069dc01470be15 (diff) | |
download | bfs-5b9bfbbb8caa5a7ef849247f1dabc100e46d4464.tar.xz |
parse: Don't return success for invalid parse_int() calls with -DNDEBUG
-rw-r--r-- | parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -623,7 +623,7 @@ static const char *parse_int(const struct parser_state *state, const char *str, default: assert(false); - break; + goto bad; } return endptr; @@ -2269,7 +2269,7 @@ fail_list_strategies: } /** - * Parse -[aBc]?since. + * Parse -[aBcm]?since. */ static struct expr *parse_since(struct parser_state *state, int field, int arg2) { struct expr *expr = parse_unary_test(state, eval_newer); |