1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00

core: fix OOM checks in dbus-unit

CID#1299014
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2015-05-19 06:45:52 +02:00
parent b669934fae
commit e861098bf2

View File

@ -716,7 +716,7 @@ static int send_new_signal(sd_bus *bus, void *userdata) {
assert(u); assert(u);
p = unit_dbus_path(u); p = unit_dbus_path(u);
if (!u) if (!p)
return -ENOMEM; return -ENOMEM;
r = sd_bus_message_new_signal( r = sd_bus_message_new_signal(
@ -793,7 +793,7 @@ static int send_removed_signal(sd_bus *bus, void *userdata) {
assert(u); assert(u);
p = unit_dbus_path(u); p = unit_dbus_path(u);
if (!u) if (!p)
return -ENOMEM; return -ENOMEM;
r = sd_bus_message_new_signal( r = sd_bus_message_new_signal(