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