Fix: Don't report an error when listing a session with no channels
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index a95f269d0a93d59220c45075f140b211359b34d0..e8e45115205256fed9cfdface11ae0aaea692268 100644 (file)
@@ -3315,7 +3315,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.024924 seconds and 4 git commands to generate.