summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-02-25 11:07:50 -0500
committerTavian Barnes <tavianator@tavianator.com>2020-02-25 11:07:50 -0500
commit5b9bfbbb8caa5a7ef849247f1dabc100e46d4464 (patch)
tree6a3111136978db3f896ccd40654d1301dbf4ddbc /parse.c
parent7b1c49bca18986e94d358d8ebb069dc01470be15 (diff)
downloadbfs-5b9bfbbb8caa5a7ef849247f1dabc100e46d4464.tar.xz
parse: Don't return success for invalid parse_int() calls with -DNDEBUG
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 509d835..55a903c 100644
--- a/parse.c
+++ b/parse.c
@@ -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);