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.6.1~115 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=784241eb80f573f51f0ad5ee97d723928e3ef33d;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 8763ac96e..f90c3f6b9 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; }