summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-control.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-12 22:17:38 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-13 04:06:43 +0100
commit33cb6e7934a57f508a164eb6d33a044efad75ab7 (patch)
treeaf5e296f295e8f4a692baa9842fad2775251167c /src/libsystemd-bus/bus-control.c
parentb408e2a8be6b87fd1796c45a767d00bbb00d7148 (diff)
bus: properly parse NameOwnerChanged messages when caller explicitly wants to match against names coming/going
Diffstat (limited to 'src/libsystemd-bus/bus-control.c')
-rw-r--r--src/libsystemd-bus/bus-control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c
index db7263f6d5..5125fd9724 100644
--- a/src/libsystemd-bus/bus-control.c
+++ b/src/libsystemd-bus/bus-control.c
@@ -741,7 +741,7 @@ static int add_name_change_match(sd_bus *bus,
return 0;
}
- if (old_owner) {
+ if (!isempty(old_owner)) {
r = bus_kernel_parse_unique_name(old_owner, &old_owner_id);
if (r < 0)
return 0;
@@ -751,7 +751,7 @@ static int add_name_change_match(sd_bus *bus,
return 0;
}
- if (new_owner) {
+ if (!isempty(new_owner)) {
r = bus_kernel_parse_unique_name(new_owner, &new_owner_id);
if (r < 0)
return r;