remove unneeded initialisation; separate declaration and initialisation.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 26 May 2012 10:04:04 +0000 (12:04 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 26 May 2012 10:04:04 +0000 (12:04 +0200)
citadel/modules/calendar/serv_calendar.c

index 2c9419692e3e0154b625bb9290e01a17f57b74a8..6f8e3feb58289c25f7d6510c86050d333c0302d7 100644 (file)
@@ -1046,8 +1046,6 @@ void ical_conflicts_phase4(icalcomponent *proposed_event,
                long existing_msgnum)
 {
        struct icaltimetype t1start, t1end;
-       t1start = icaltime_null_time();
-       t1end = icaltime_null_time();
        icalproperty *p;
        char compare_uid[SIZ];
 
@@ -1059,6 +1057,7 @@ void ical_conflicts_phase4(icalcomponent *proposed_event,
        int num_recur = 0;
 
        /* initialization */
+       t1end = icaltime_null_time();
        *compare_uid = '\0';
 
        /* proposed event stuff */