aboutsummaryrefslogtreecommitdiff
path: root/libbb/ask_confirmation.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/ask_confirmation.c')
-rw-r--r--libbb/ask_confirmation.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/ask_confirmation.c b/libbb/ask_confirmation.c
index d08bc515e..9dfbd15cf 100644
--- a/libbb/ask_confirmation.c
+++ b/libbb/ask_confirmation.c
@@ -20,9 +20,7 @@ int FAST_FUNC bb_ask_confirmation(void)
20 int c; 20 int c;
21 21
22 while (((c = getchar()) != EOF) && (c != '\n')) { 22 while (((c = getchar()) != EOF) && (c != '\n')) {
23 /* Make sure we get the actual function call for isspace, 23 if (first && !isspace(c)) {
24 * as speed is not critical here. */
25 if (first && !(isspace)(c)) {
26 --first; 24 --first;
27 if ((c == 'y') || (c == 'Y')) { 25 if ((c == 'y') || (c == 'Y')) {
28 ++retval; 26 ++retval;