aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits/calendar/calendar-conduit.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/conduits/calendar/calendar-conduit.c')
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index 3fd110100a..68bcae0887 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -425,9 +425,9 @@ ical_from_remote_record(GnomePilotConduitStandardAbs *conduit,
obj->recur->weekday |= 1 << wd;
if (obj->recur->weekday == 0){
- struct tm *tm = localtime (&obj->dtstart);
+ struct tm tm = *localtime (&obj->dtstart);
- obj->recur->weekday = 1 << tm->tm_wday;
+ obj->recur->weekday = 1 << tm.tm_wday;
}
break;
}