Commit 7507fc75 authored by David Jarvie's avatar David Jarvie
Browse files

Fix uninitialised variable

Backport 623a1aac91cb976f8ed0d138d076209f365367fa from master
parent 6bb24eb1
......@@ -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