Skip to content
Snippets Groups Projects
Commit 4402ce36 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

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

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