From: Guido van Rossum Date: Sat, 2 Nov 1996 17:31:22 +0000 (+0000) Subject: Should compare errno to 0, not NULL X-Git-Tag: v1.5a1~962 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed;p=thirdparty%2FPython%2Fcpython.git Should compare errno to 0, not NULL --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 3aca3a561abf..2d42dc0df35f 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);