summaryrefslogtreecommitdiff
path: root/src/ctype/isblank.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/isblank.c')
-rw-r--r--src/ctype/isblank.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctype/isblank.c b/src/ctype/isblank.c
index 5b5ad8b1..54b5d239 100644
--- a/src/ctype/isblank.c
+++ b/src/ctype/isblank.c
@@ -12,7 +12,7 @@ int isblank(int c)
ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, "unsigned char", EOF);
- return map[c] & CT_BLANK;
+ return c == EOF ? 0 : map[c] & CT_BLANK;
}
/***