Should compare errno to 0, not NULL
This commit is contained in:
parent
76e47f3d75
commit
0b1ff66920
|
@ -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…
Reference in New Issue