Make execution path with uninitialized domain fail
[lttng-tools.git] / src / bin / lttng / commands / list.c
index b73d5209f7f023408048fa27f90f9e0a3a45aeb3..7c33046ebec1490f798ca4a63e71f0778f91c1db 100644 (file)
@@ -598,6 +598,10 @@ int cmd_list(int argc, const char **argv)
        } else if (opt_userspace) {
                DBG2("Listing userspace global domain");
                domain.type = LTTNG_DOMAIN_UST;
+       } else {
+               usage(stderr);
+               ret = CMD_UNDEFINED;
+               goto end;
        }
 
        handle = lttng_create_handle(session_name, &domain);
This page took 0.02336 seconds and 4 git commands to generate.