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>
Wed, 31 May 2023 21:24:18 +0000 (17:24 -0400)
commitbc1f87ff76fb31839ce8e4fd224d451bd368c21b
tree169b0c538233cc743cee55b065ac726d53566fd7
parentd0140239ebd8cad782542e834bd7ea6ef8cb22a7
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.c
This page took 0.025315 seconds and 4 git commands to generate.