]> git.ipfire.org Git - thirdparty/systemd.git/commit
calendar: make freeing a calendar spec object deal fine with NULL
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Oct 2014 16:33:29 +0000 (18:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 Oct 2014 16:33:29 +0000 (18:33 +0200)
commit0b76b4d8c28e8d82422ddeea2cc3c079fe4bb3dc
tree3e29b066fbdfb532ab25db02e72a0511452409ba
parent69f0081748fb4be1b7b772815e5c4202cdb88d3d
calendar: make freeing a calendar spec object deal fine with NULL

In order to make object destruction easier (in particular in combination
with _cleanup_) we usually make destructors deal with NULL objects as
NOPs. Change the calendar spec destructor to follow the same scheme.
src/core/load-fragment.c
src/shared/calendarspec.c