Commit 7946b4d4 authored by Guido van Rossum's avatar Guido van Rossum

Should compare errno to 0, not NULL

parent 45d9cdef
...@@ -147,7 +147,7 @@ time_convert(when, function) ...@@ -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);
......
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