projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9118155
)
busctl: shorten code a bit
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sun, 10 Oct 2021 10:18:08 +0000
(19:18 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sun, 10 Oct 2021 11:26:21 +0000
(20:26 +0900)
src/busctl/busctl-introspect.c
patch
|
blob
|
history
diff --git
a/src/busctl/busctl-introspect.c
b/src/busctl/busctl-introspect.c
index 4dbb11f15b935d1a895e6cb08b78c9d62e3c8921..9fbe9ebb5ed0141683ec8a5c4140f2bede556750 100644
(file)
--- a/
src/busctl/busctl-introspect.c
+++ b/
src/busctl/busctl-introspect.c
@@
-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();