* calendar_view.c: fixed a variable initialization bug that was causing some
authorArt Cancro <ajc@citadel.org>
Tue, 25 Oct 2005 02:19:18 +0000 (02:19 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 25 Oct 2005 02:19:18 +0000 (02:19 +0000)
  time-specific events to be displayed as all-day events.

webcit/ChangeLog
webcit/calendar_view.c

index fef11cf4b091c386497cb6831177d66acf1a4397..a6ec052634a2f852f0f7d14d1160243d1f7694ef 100644 (file)
@@ -1,3 +1,7 @@
+Mon Oct 24 22:18:25 EDT 2005 ajc
+* calendar_view.c: fixed a variable initialization bug that was causing some
+  time-specific events to be displayed as all-day events.
+
 Mon Oct 24 11:58:53 EDT 2005 ajc
 * List sub/unsub confirmation -- Citadel now wants http:// or https://
   prepended as part of the 'submitted subscribe url' so we are now doing
index 062df0c4dbbe5dbfa831affb074d843cab1943a8..cd898dbae1b6c450c0ba212867ece57b313667cf 100644 (file)
@@ -247,7 +247,12 @@ void calendar_day_view_display_events(int year, int month,
                if (p != NULL) {
                        t = icalproperty_get_dtstart(p);
                        event_tt = icaltime_as_timet(t);
-                       if (t.is_date) all_day_event = 1;
+                       if (t.is_date) {
+                               all_day_event = 1;
+                       }
+                       else {
+                               all_day_event = 0;
+                       }
 
                        if (all_day_event) {
                                event_tm = gmtime(&event_tt);
@@ -462,7 +467,12 @@ void calendar_summary_view(void) {
                if (p != NULL) {
                        t = icalproperty_get_dtstart(p);
                        event_tt = icaltime_as_timet(t);
-                       if (t.is_date) all_day_event = 1;
+                       if (t.is_date) {
+                               all_day_event = 1;
+                       }
+                       else {
+                               all_day_event = 0;
+                       }
                        fmt_time(timestring, event_tt);
 
                        if (all_day_event) {