diff options
Diffstat (limited to 'calendar/gui/gnome-month-item.c')
-rw-r--r-- | calendar/gui/gnome-month-item.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/gnome-month-item.c b/calendar/gui/gnome-month-item.c index 4b8a9d75ac..58e393e4ee 100644 --- a/calendar/gui/gnome-month-item.c +++ b/calendar/gui/gnome-month-item.c @@ -749,15 +749,15 @@ static void gnome_month_item_init (GnomeMonthItem *mitem) { time_t t; - struct tm *tm; + struct tm tm; /* Initialize to the current month by default */ t = time (NULL); - tm = localtime (&t); + tm = *localtime (&t); - mitem->year = tm->tm_year + 1900; - mitem->month = tm->tm_mon; + mitem->year = tm.tm_year + 1900; + mitem->month = tm.tm_mon; mitem->x = 0.0; mitem->y = 0.0; |