Fix: lttng remove-trigger -h fails
authorOlivier Dion <odion@efficios.com>
Wed, 22 Feb 2023 21:45:27 +0000 (16:45 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 28 Feb 2023 15:57:05 +0000 (10:57 -0500)
commit5ba02fffe2521809056a0ed611553823e2c7ad11
tree1553d7275e6295970ff90f0de0566b496e66c832
parentc7415bcc43ad44e550f20576937565434d8b5c6d
Fix: lttng remove-trigger -h fails

The error was that `argv' was incremented before passing it to
`argpar_iter_create'. However, the macro `SHOW_HELP' implicitly
deferences `argv[0]' to determine the command name.

Fix this by introducing a new variable `args' leaving `argv' untouched.

Change-Id: Id50fa2424550280a1e5e207429d643f5e8e00396
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/remove_trigger.cpp
This page took 0.026715 seconds and 4 git commands to generate.