summaryrefslogtreecommitdiffstats
path: root/src/busctl/busctl-introspect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/busctl/busctl-introspect.c')
-rw-r--r--src/busctl/busctl-introspect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/busctl/busctl-introspect.c b/src/busctl/busctl-introspect.c
index 9fbe9ebb5e..6002af5b2a 100644
--- a/src/busctl/busctl-introspect.c
+++ b/src/busctl/busctl-introspect.c
@@ -178,11 +178,10 @@ static int parse_xml_node(Context *context, const char *prefix, unsigned n_depth
} state = STATE_NODE;
_cleanup_free_ char *node_path = NULL, *argument_type = NULL, *argument_direction = NULL;
- const char *np = prefix;
+ const char *np = ASSERT_PTR(prefix);
int r;
assert(context);
- assert(prefix);
if (n_depth > NODE_DEPTH_MAX)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "<node> depth too high.");