summaryrefslogtreecommitdiffstats
path: root/src/opt.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-13 10:12:25 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-13 10:12:25 -0400
commit50dd5af226853d8d7201c7478d13f773cfd1479e (patch)
treec1cf681542bb0aece4e7b891ceb4422571b81e48 /src/opt.c
parent337aa27ecdafb27f80db79ffb1110d91fdd5a4ef (diff)
downloadbfs-50dd5af226853d8d7201c7478d13f773cfd1479e.tar.xz
Default to no for "Do you want to continue?" prompts
Diffstat (limited to 'src/opt.c')
-rw-r--r--src/opt.c2
1 files changed, 1 insertions, 1 deletions
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;
}