aboutsummaryrefslogtreecommitdiff
path: root/time/asctime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/asctime.c')
-rw-r--r--time/asctime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/asctime.c b/time/asctime.c
index bb20a3aedc..25bc9de04c 100644
--- a/time/asctime.c
+++ b/time/asctime.c
@@ -39,7 +39,7 @@ __asctime_r (const struct tm *tp, char *buf)
{
if (tp == NULL)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return NULL;
}