mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
sd-bus: check c->path for null instead of path
This commit is contained in:
parent
6f6fad96ad
commit
531991b64d
@ -1944,7 +1944,7 @@ static int bus_add_object(
|
||||
return -ENOMEM;
|
||||
|
||||
c->path = strdup(path);
|
||||
if (!path) {
|
||||
if (!c->path) {
|
||||
free(c);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user