iCalTrigger: fix initialization of variable

pull/7/head
Francis Lachapelle 2012-11-27 15:14:30 -05:00
parent 57e4116d7c
commit e523926ef5
1 changed files with 1 additions and 2 deletions

View File

@ -59,6 +59,7 @@
NSTimeInterval anInterval;
id grandParent;
nextAlarmDate = nil;
triggerValue = [[self valueType] uppercaseString];
if ([triggerValue length] == 0)
triggerValue = @"DURATION";
@ -88,8 +89,6 @@
}
else if ([triggerValue isEqualToString: @"DATE-TIME"])
nextAlarmDate = [[self flattenedValuesForKey: @""] asCalendarDate];
else
nextAlarmDate = nil;
return nextAlarmDate;
}