]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-event/sd-event.c
sd-event: make _ref() calls NOPs when NULL is passed to them
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Nov 2015 22:32:52 +0000 (23:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Nov 2015 22:36:03 +0000 (23:36 +0100)
commit6680dd6b66e8a3e116819122ef66d89846d95f58
tree1f5603c83ae7d1312b3b6dfd7d8c9ca907d6acef
parentbb54817f3bbe9043326b72a848384491314d428d
sd-event: make _ref() calls NOPs when NULL is passed to them

Let's make _ref() calls happy when NULL is passed to them, and simply
return NULL without any assertion logic. This makes them nicely
symmetric to the _unref() calls which also are happy to take NULL and
become NOPs then.
src/libsystemd/sd-event/sd-event.c