From: Lennart Poettering Date: Fri, 31 Jan 2014 16:47:22 +0000 (+0100) Subject: core: fix oom check X-Git-Tag: v209~265 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9ceefc810f86026fd9c97ac89d9d1898f8482d89;p=elogind.git core: fix oom check --- diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 37c1e8cbf..d4393e321 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -627,7 +627,7 @@ static int send_changed_signal(sd_bus *bus, const char *destination, void *userd assert(u); p = unit_dbus_path(u); - if (!u) + if (!p) return -ENOMEM; /* Send a properties changed signal. First for the specific