hotfix for condition when errno is null