chiark / gitweb /
sd-bus: check c->path for null instead of path
authorLukas Nykryn <lnykryn@redhat.com>
Wed, 27 Mar 2013 09:44:20 +0000 (10:44 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 Mar 2013 16:01:44 +0000 (12:01 -0400)
src/libsystemd-bus/sd-bus.c

index 5f2ede0..6acc59e 100644 (file)
@@ -1944,7 +1944,7 @@ static int bus_add_object(
                 return -ENOMEM;
 
         c->path = strdup(path);
-        if (!path) {
+        if (!c->path) {
                 free(c);
                 return -ENOMEM;
         }