[systemd-devel] [PATCH 1/2] sd-bus: check c->path for null instead of path
Lukas Nykryn
lnykryn at redhat.com
Wed Mar 27 02:44:20 PDT 2013
---
src/libsystemd-bus/sd-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
index 5f2ede0..6acc59e 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;
}
--
1.8.1.4
More information about the systemd-devel
mailing list