Should compare errno to 0, not NULL

This commit is contained in:
Guido van Rossum 1996-11-02 17:31:22 +00:00
parent 76e47f3d75
commit 0b1ff66920
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ time_convert(when, function)
p = function(&when); p = function(&when);
if (p == NULL) { if (p == NULL) {
#ifdef EINVAL #ifdef EINVAL
if (errno == NULL) if (errno == 0)
errno = EINVAL; errno = EINVAL;
#endif #endif
return err_errno(IOError); return err_errno(IOError);