Commit 9b62c194 authored by David Jarvie's avatar David Jarvie
Browse files

Fix uninitialised variable

parent ca7c47a7
......@@ -996,8 +996,7 @@ void KAEvent::readAlarm(const Alarm* alarm, AlarmData& data, bool audioMain, boo
data.action = KAAlarmEventBase::T_EMAIL;
data.cleanText = alarm->mailText();
int i = flags.indexOf(Private::EMAIL_ID_FLAG);
if (i >= 0 && i + 1 < flags.count())
data.emailFromId = flags[i + 1].toUInt();
data.emailFromId = (i >= 0 && i + 1 < flags.count()) ? flags[i + 1].toUInt() : 0;
break;
}
case Alarm::Audio:
......
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