X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fcreate.c;fp=src%2Fbin%2Flttng%2Fcommands%2Fcreate.c;h=3379a3b27b8638a3f3455af6cc4b0dca981a90b5;hp=525464aa822d90b556308d830196eb38ed92b898;hb=95681498599cbd3bc1aa6dfa725a668ab272170b;hpb=272ba89a5ee1a45f1fcdd7b46139cd0cefd2150d diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 525464aa8..3379a3b27 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -141,18 +141,15 @@ static int set_consumer_url(const char *session_name, const char *ctrl_url, { int ret; struct lttng_handle *handle; - struct lttng_domain dom; assert(session_name); /* - * Set handle with the session name and the domain set to 0. This means to - * the session daemon that the next action applies on the tracing session - * rather then the domain specific session. + * Set handle with the session_name, but no domain. This implies that + * the actions taken with this handle apply on the tracing session + * rather then the domain-specific session. */ - memset(&dom, 0, sizeof(dom)); - - handle = lttng_create_handle(session_name, &dom); + handle = lttng_create_handle(session_name, NULL); if (handle == NULL) { ret = CMD_FATAL; goto error;