Make execution path with uninitialized domain fail
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Feb 2012 03:06:39 +0000 (22:06 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Feb 2012 03:06:39 +0000 (22:06 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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.034769 seconds and 4 git commands to generate.