From 531991b64d1fd28218c48bab364ef8c4e80354fa Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Wed, 27 Mar 2013 10:44:20 +0100 Subject: sd-bus: check c->path for null instead of path --- 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 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; } -- cgit v1.2.3-54-g00ecf