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:31:01 +0000 (10:31 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/view.c

index 8763ac96e421f0a5370abe44fcf2b95006af5ee5..f90c3f6b94315ad78d2f3722959451b3f117b1f0 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.026037 seconds and 4 git commands to generate.