1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 23:21:08 +03:00

sd-bus: check c->path for null instead of path

This commit is contained in:
Lukas Nykryn 2013-03-27 10:44:20 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 6f6fad96ad
commit 531991b64d

View 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;
}