aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/calobj.c')
-rw-r--r--calendar/calobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/calobj.c b/calendar/calobj.c
index dbc3bf2f1b..7b85fdc54c 100644
--- a/calendar/calobj.c
+++ b/calendar/calobj.c
@@ -306,7 +306,7 @@ daynumberlist (iCalObject *o, char **str)
if (val == 0){
struct tm *day = localtime (&o->dtstart);
- val = tm->tm_mday;
+ val = day->tm_mday;
}
o->recur->u.month_day = val;
first = 1;