summaryrefslogtreecommitdiff
path: root/libbb/read_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/read_key.c')
-rw-r--r--libbb/read_key.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/read_key.c b/libbb/read_key.c
index 0f36d20..fd100b0 100644
--- a/libbb/read_key.c
+++ b/libbb/read_key.c
@@ -66,6 +66,7 @@ int FAST_FUNC read_key(int fd, smalluint *nbuffered, char *buffer)
0
};
+ errno = 0;
n = 0;
if (nbuffered)
n = *nbuffered;