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);
|
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);
|
||||||
|
|
Loading…
Reference in New Issue