From: Mathieu Desnoyers Date: Tue, 7 Feb 2012 03:06:39 +0000 (-0500) Subject: Make execution path with uninitialized domain fail X-Git-Tag: v2.0-pre20~16 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=081311398b0deca05eebaac8672efbc9af272d36 Make execution path with uninitialized domain fail Signed-off-by: Mathieu Desnoyers --- 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);