Eliminate use of uninitialized offset.

This commit is contained in:
apo 2018-05-25 02:38:43 -07:00 committed by Howard Hinnant
parent 328cecaa56
commit f33e179936

View File

@ -7313,8 +7313,8 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
fds.wd = weekday{static_cast<unsigned>(wd)};
if (abbrev != nullptr)
*abbrev = std::move(temp_abbrev);
if (offset != nullptr)
*offset = temp_offset;
if (offset != nullptr && temp_offset != not_a_offset)
*offset = temp_offset;
}
return is;
}