Ensure errno is zeroed before testing it
Merge pull request #8 from anchor/fix-errno

Ensure errno is zeroed before testing it