iCalTrigger: fix initialization of variable

This commit is contained in:
Francis Lachapelle
2012-11-27 15:14:30 -05:00
parent 57e4116d7c
commit e523926ef5
+1 -2
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;
}