Commit 0b1ff669 authored by Guido van Rossum's avatar Guido van Rossum

Should compare errno to 0, not NULL

parent 76e47f3d
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment