mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
busctl: shorten code a bit
This commit is contained in:
parent
911815565a
commit
1b4f2ba28e
@ -228,7 +228,7 @@ static int parse_xml_node(Context *context, const char *prefix, unsigned n_depth
|
||||
(t == XML_TAG_CLOSE && streq_ptr(name, "node"))) {
|
||||
|
||||
if (context->ops->on_path) {
|
||||
r = context->ops->on_path(node_path ? node_path : np, context->userdata);
|
||||
r = context->ops->on_path(node_path ?: np, context->userdata);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
@ -250,7 +250,6 @@ static int parse_xml_node(Context *context, const char *prefix, unsigned n_depth
|
||||
if (name[0] == '/')
|
||||
node_path = TAKE_PTR(name);
|
||||
else {
|
||||
|
||||
node_path = path_join(prefix, name);
|
||||
if (!node_path)
|
||||
return log_oom();
|
||||
|
Loading…
Reference in New Issue
Block a user