From 0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 2 Nov 1996 17:31:22 +0000 Subject: Should compare errno to 0, not NULL --- Modules/timemodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12