Zero errno before running functions which set it.