should be enough
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Marius Eggert 2024-03-05 13:48:09 +01:00
parent 440d989490
commit c2d8ef9fe4

View File

@ -2102,9 +2102,8 @@ ReturnValue_t CoreController::initLeapSecondsFromFile() {
}
iss >> nextWord;
uint16_t leapSeconds = 0;
size_t checkPtr;
leapSeconds = std::stoi(nextWord.c_str(), &checkPtr, 10);
if (iss.bad() or checkPtr) {
leapSeconds = std::stoi(nextWord.c_str());
if (iss.bad()) {
return returnvalue::FAILED;
}
Clock::setLeapSeconds(leapSeconds);