summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-03-27 10:44:20 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-27 12:01:44 -0400
commit531991b64d1fd28218c48bab364ef8c4e80354fa (patch)
tree6d530f247f43f4208fc6da30cbd6c16a0b945d01 /src/libsystemd-bus
parent6f6fad96addf6b00b55c98cc0d0d8026b0c1e7ca (diff)
sd-bus: check c->path for null instead of path
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r--src/libsystemd-bus/sd-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
index 5f2ede088a..6acc59e82c 100644
--- a/src/libsystemd-bus/sd-bus.c
+++ b/src/libsystemd-bus/sd-bus.c
@@ -1944,7 +1944,7 @@ static int bus_add_object(
return -ENOMEM;
c->path = strdup(path);
- if (!path) {
+ if (!c->path) {
free(c);
return -ENOMEM;
}