aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-month-item.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1999-09-28 04:56:29 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-09-28 04:56:29 +0800
commit241a65b72b3620f85bad00fac28d268e5f47d2d6 (patch)
tree94f749268b21a9ae37a71ff2ad2cb91cc23e311a /calendar/gui/gnome-month-item.c
parent9d0b58bb8eb5a2180c6d38d7e45c9396331dc725 (diff)
downloadgsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.tar.gz
gsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.tar.zst
gsoc2013-evolution-241a65b72b3620f85bad00fac28d268e5f47d2d6.zip
Small fix -miguel
svn path=/trunk/; revision=1265
Diffstat (limited to 'calendar/gui/gnome-month-item.c')
-rw-r--r--calendar/gui/gnome-month-item.c8
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;