From: Jonathan Rajotte Date: Tue, 25 Jul 2017 21:46:47 +0000 (-0400) Subject: Fix: wrong variable assignment on error X-Git-Tag: v2.9.6~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e45f53190f70c3ff9fc0fc138a4fb07c4cffdb0d;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; }