Fix: Possible call to execvp with NULL argument on allocation failure
[lttng-tools.git] / 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.0238 seconds and 4 git commands to generate.