From 9ceefc810f86026fd9c97ac89d9d1898f8482d89 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 31 Jan 2014 17:47:22 +0100 Subject: [PATCH] core: fix oom check --- src/core/dbus-unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2