Initialize PODs with 0 and not leave anyting to chance.

master
Nicky 2022-02-28 22:20:41 +01:00
parent 43031968a6
commit 35cec6e3ad
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}