From: Michael Jeanson Date: Mon, 16 May 2016 22:55:57 +0000 (-0400) Subject: Fix: Don't try to show manpage when argv is null X-Git-Tag: v2.9.0-rc1~207 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=cfd1353e7676867350d58287344c020f35a25fe3 Fix: Don't try to show manpage when argv is null Fixes coverity #1353461 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/metadata.c b/src/bin/lttng/commands/metadata.c index 4f248d44c..f6a821af3 100644 --- a/src/bin/lttng/commands/metadata.c +++ b/src/bin/lttng/commands/metadata.c @@ -94,7 +94,7 @@ static int handle_command(const char **argv) int ret = CMD_SUCCESS, i = 0, argc, command_ret = CMD_SUCCESS; if (argv == NULL) { - SHOW_HELP(); + ERR("argv is null"); command_ret = CMD_ERROR; goto end; }