X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..39ecf70bb:/sbr/read_yes_or_no_if_tty.c diff --git a/sbr/read_yes_or_no_if_tty.c b/sbr/read_yes_or_no_if_tty.c index 05ffc2f6..2427f59c 100644 --- a/sbr/read_yes_or_no_if_tty.c +++ b/sbr/read_yes_or_no_if_tty.c @@ -14,7 +14,7 @@ read_yes_or_no_if_tty (const char *prompt) static int interactive = -1; if (interactive < 0) - interactive = isatty (fileno (stdin)) ? 1 : 0; + interactive = isatty (fileno (stdin)); return (interactive ? read_switch (prompt, anoyes) : 1); }