diff options
Diffstat (limited to 'src/shared/calendarspec.c')
-rw-r--r-- | src/shared/calendarspec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c index 69b7427232..4ac74ab0a2 100644 --- a/src/shared/calendarspec.c +++ b/src/shared/calendarspec.c @@ -35,7 +35,9 @@ static void free_chain(CalendarComponent *c) { } void calendar_spec_free(CalendarSpec *c) { - assert(c); + + if (!c) + return; free_chain(c->year); free_chain(c->month); |