summaryrefslogtreecommitdiffstats
path: root/src/varlinkctl
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-11-25 21:34:10 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-11-28 10:28:17 +0100
commit698da597e1d80724841a8e2ec672c8df60563525 (patch)
tree61b60e3784f91fea5d33db04bc3dba03ff926a75 /src/varlinkctl
parentcapability-util: avoid false-positive use-of-uninitialized-value error (diff)
downloadsystemd-698da597e1d80724841a8e2ec672c8df60563525.tar.xz
systemd-698da597e1d80724841a8e2ec672c8df60563525.zip
varlinkctl: add short comment
Diffstat (limited to 'src/varlinkctl')
-rw-r--r--src/varlinkctl/varlinkctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/varlinkctl/varlinkctl.c b/src/varlinkctl/varlinkctl.c
index 36556642d3..64105c7ab2 100644
--- a/src/varlinkctl/varlinkctl.c
+++ b/src/varlinkctl/varlinkctl.c
@@ -376,6 +376,7 @@ static int verb_call(int argc, char *argv[], void *userdata) {
arg_json_format_flags &= ~JSON_FORMAT_OFF;
if (parameter) {
+ /* <argv[4]> is correct, as dispatch_verb() shifts arguments by one for the verb. */
r = json_parse_with_source(parameter, "<argv[4]>", 0, &jp, &line, &column);
if (r < 0)
return log_error_errno(r, "Failed to parse parameters at <argv[4]>:%u:%u: %m", line, column);