Kaydet (Commit) 0b1ff669 authored tarafından Guido van Rossum's avatar Guido van Rossum

Should compare errno to 0, not NULL

üst 76e47f3d
...@@ -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