From 241a65b72b3620f85bad00fac28d268e5f47d2d6 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Mon, 27 Sep 1999 20:56:29 +0000 Subject: Small fix -miguel svn path=/trunk/; revision=1265 --- calendar/gui/gnome-month-item.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'calendar/gui/gnome-month-item.c') 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; -- cgit v1.2.3