mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Should compare errno to 0, not NULL
This commit is contained in:
parent
76e47f3d75
commit
0b1ff66920
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue