summaryrefslogtreecommitdiff
path: root/src/ctype/iscntrl.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-08 16:09:21 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-08 16:09:21 -0500
commitf9185e64f3cbe401e0f2953951c4209abd409b40 (patch)
treec809072f4e89f976ff9776f3b5b3348d26c8faff /src/ctype/iscntrl.c
parent70505f05f3954bd4d8850a0ecb943e2dab2795e9 (diff)
mark as not signal-safe
Diffstat (limited to 'src/ctype/iscntrl.c')
-rw-r--r--src/ctype/iscntrl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ctype/iscntrl.c b/src/ctype/iscntrl.c
index 83c52e1c..454da1b6 100644
--- a/src/ctype/iscntrl.c
+++ b/src/ctype/iscntrl.c
@@ -8,6 +8,7 @@ int iscntrl(int c)
{
unsigned int *map = __get_locale()->lc_ctype.ctattr;
+ SIGNAL_SAFE(0);
ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF);
return c == EOF ? 0 : map[c] & CT_CNTRL;