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