Clear errno before calling strtod()