Fix: Don't report an error when listing a session with no channels
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 699d53323dd3b7eefe313d006f3b0e0605941336..9542e650dd6883b3351ae20ca249902259a3d94a 100644 (file)
@@ -3474,7 +3474,7 @@ skip_domain:
        case LTTNG_LIST_DOMAINS:
        {
                ssize_t nb_dom;
-               struct lttng_domain *domains;
+               struct lttng_domain *domains = NULL;
 
                nb_dom = cmd_list_domains(cmd_ctx->session, &domains);
                if (nb_dom < 0) {
@@ -3501,7 +3501,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.026956 seconds and 5 git commands to generate.