summaryrefslogtreecommitdiff
path: root/libc/signal/sigempty.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/signal/sigempty.c')
-rw-r--r--libc/signal/sigempty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/signal/sigempty.c b/libc/signal/sigempty.c
index 96260fb92..56b62bc65 100644
--- a/libc/signal/sigempty.c
+++ b/libc/signal/sigempty.c
@@ -26,13 +26,15 @@
/* libc_hidden_proto(sigemptyset) */
int sigemptyset (sigset_t *set)
{
+#if 0 /* is it really required by standards?! */
if (set == NULL)
{
__set_errno (EINVAL);
return -1;
}
+#endif
- memset (set, 0, sizeof (sigset_t));
+ __sigemptyset (set);
return 0;
}