summaryrefslogtreecommitdiff
path: root/src/ctype/islower.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/islower.c')
-rw-r--r--src/ctype/islower.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctype/islower.c b/src/ctype/islower.c
index 259d1149..0a928a33 100644
--- a/src/ctype/islower.c
+++ b/src/ctype/islower.c
@@ -10,7 +10,7 @@ int islower(int c)
ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF);
- return map[c] & CT_LOWER;
+ return c == EOF ? 0 : map[c] & CT_LOWER;
}
/***