From: Jérémie Galarneau Date: Tue, 18 Feb 2020 00:49:04 +0000 (-0500) Subject: Fix: lttng: track-untrack: error assigned to wrong variable X-Git-Tag: v2.13.0-rc1~760 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a28dd43d8f6781ceadc49d2ac7c245f367d84511;p=lttng-tools.git Fix: lttng: track-untrack: error assigned to wrong variable CMD_ERROR is assigned to 'ret' rather than 'command_ret' when an unknown left-over argument is passed to the track/untrack command. Signed-off-by: Jérémie Galarneau Change-Id: I5889a934d9859d0499eb26555658bf15af73f927 --- diff --git a/src/bin/lttng/commands/track-untrack.c b/src/bin/lttng/commands/track-untrack.c index 7f8007dab..06fd528ab 100644 --- a/src/bin/lttng/commands/track-untrack.c +++ b/src/bin/lttng/commands/track-untrack.c @@ -719,7 +719,7 @@ int cmd_track_untrack(enum cmd_type cmd_type, const char *cmd_str, leftover = poptGetArg(pc); if (leftover) { ERR("Unknown argument: %s", leftover); - ret = CMD_ERROR; + command_ret = CMD_ERROR; goto end; }