Set errno to zero before strtol call when reading cal data