mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 07:53:16 +08:00
Eliminate use of uninitialized offset.
This commit is contained in:
parent
328cecaa56
commit
f33e179936
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user