From 50dd5af226853d8d7201c7478d13f773cfd1479e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 13 Aug 2024 10:12:25 -0400 Subject: Default to no for "Do you want to continue?" prompts --- src/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/opt.c') diff --git a/src/opt.c b/src/opt.c index 842d27c..293a2f7 100644 --- a/src/opt.c +++ b/src/opt.c @@ -1823,7 +1823,7 @@ static bool opt_ignore(struct bfs_opt *opt, struct bfs_expr *expr) { if (opt_warning(opt, expr, "The result of this expression is ignored.\n")) { if (ctx->interactive && ctx->dangerous) { bfs_warning(ctx, "Do you want to continue? "); - if (ynprompt() == 0) { + if (ynprompt() <= 0) { errno = 0; return false; } -- cgit v1.2.3