Commit 4402ce36 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Fix a crash from empty data value observed on some...simulator...platforms...

parent d7db5a4e
......@@ -244,6 +244,9 @@ void LLExperienceLog::eraseExpired()
bool LLExperienceLog::isExpired(const std::string& date)
{
if (date.empty())
return true;
S32 month, day, year = 0;
S32 matched = sscanf(date.c_str(), "%d-%d-%d", &year, &month, &day);
if (matched != 3) return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment