Initialize PODs with 0 and not leave anyting to chance.
parent
43031968a6
commit
35cec6e3ad
|
|
@ -463,13 +463,13 @@ BOOL LLParcel::importAccessEntry(std::istream& input_stream, LLAccessEntry* entr
|
|||
}
|
||||
else if ("time" == keyword)
|
||||
{
|
||||
S32 when;
|
||||
S32 when{};
|
||||
LLStringUtil::convertToS32(value, when);
|
||||
entry->mTime = when;
|
||||
}
|
||||
else if ("flags" == keyword)
|
||||
{
|
||||
U32 setting;
|
||||
U32 setting{};
|
||||
LLStringUtil::convertToU32(value, setting);
|
||||
entry->mFlags = setting;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue