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.8.0~57 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=158d190fece29aaa70d7070974acd05c911b6f53;p=lttng-tools.git 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; }