From 081311398b0deca05eebaac8672efbc9af272d36 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 6 Feb 2012 22:06:39 -0500 Subject: [PATCH] Make execution path with uninitialized domain fail Signed-off-by: Mathieu Desnoyers --- src/bin/lttng/commands/list.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index b73d5209f..7c33046eb 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -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); -- 2.34.1