From: Jonathan Rajotte Date: Tue, 25 Jul 2017 21:46:47 +0000 (-0400) Subject: Fix: wrong variable assignment on error X-Git-Tag: v2.8.8~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=02e93b8e4048b9a94e27f677dd4b20fbfe0e5c31;p=lttng-tools.git Fix: wrong variable assignment on error Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/track-untrack.c b/src/bin/lttng/commands/track-untrack.c index 154501e59..f55805443 100644 --- a/src/bin/lttng/commands/track-untrack.c +++ b/src/bin/lttng/commands/track-untrack.c @@ -357,7 +357,7 @@ int cmd_track_untrack(enum cmd_type cmd_type, const char *cmd_str, ret = print_missing_or_multiple_domains(opt_kernel + opt_userspace); if (ret) { - ret = CMD_ERROR; + command_ret = CMD_ERROR; goto end; }