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-Url: https://git.lttng.org./?a=commitdiff_plain;h=57138fbdc72282269f5c8605925fec6db13b0d6f;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 e1e1564c1..dba614c2f 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -282,7 +282,7 @@ static int spawn_viewer(const char *trace_path) break; } - if (argv == NULL) { + if (argv == NULL || !viewer_bin) { ret = CMD_FATAL; goto error; }