Fix: Don't report an error when listing a session with no channels
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index ad136a3a2ef270e2b6aaa598fcd0e993b5d19966..36c99cda17fab631e89aee0fcde9ffdbf9e64518 100644 (file)
@@ -3472,7 +3472,7 @@ skip_domain:
        case LTTNG_LIST_CHANNELS:
        {
                int nb_chan;
-               struct lttng_channel *channels;
+               struct lttng_channel *channels = NULL;
 
                nb_chan = cmd_list_channels(cmd_ctx->lsm->domain.type,
                                cmd_ctx->session, &channels);
This page took 0.023823 seconds and 4 git commands to generate.