summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 3aca3a5..2d42dc0 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -147,7 +147,7 @@ time_convert(when, function)
p = function(&when);
if (p == NULL) {
#ifdef EINVAL
- if (errno == NULL)
+ if (errno == 0)
errno = EINVAL;
#endif
return err_errno(IOError);