Fix: Possible call to execvp with NULL argument on allocation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 26 Mar 2015 18:57:50 +0000 (14:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 28 Apr 2015 14:43:01 +0000 (10:43 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/view.c

index e46c7052392103f43f9df3965b21cd6efe9b85cb..b6d2bffb0587c22b11acace439e3d49017517fa6 100644 (file)
@@ -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;
        }
This page took 0.027402 seconds and 4 git commands to generate.