diff options
Diffstat (limited to 'calendar/calendar-pilot-sync.c')
-rw-r--r-- | calendar/calendar-pilot-sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/calendar-pilot-sync.c b/calendar/calendar-pilot-sync.c index e8261197af..f4bc821500 100644 --- a/calendar/calendar-pilot-sync.c +++ b/calendar/calendar-pilot-sync.c @@ -245,9 +245,9 @@ update_record (GNOME_Calendar_Repository repo, int id, struct Appointment *a, in 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; } |