From: Jérémie Galarneau Date: Thu, 26 Mar 2015 18:57:50 +0000 (-0400) Subject: Fix: Possible call to execvp with NULL argument on allocation failure X-Git-Tag: v2.5.5~28 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=e72a1cd2aefe4119f6e8cc1e403f95d9d5d25dba;p=lttng-tools.git Fix: Possible call to execvp with NULL argument on allocation failure Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index e46c70523..b6d2bffb0 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -281,7 +281,7 @@ static int spawn_viewer(const char *trace_path) break; } - if (argv == NULL) { + if (argv == NULL || !viewer_bin) { ret = CMD_FATAL; goto error; }