Fix: Don't report an error when listing a session with no channels
[lttng-tools.git] / src / bin / lttng / commands / list.c
index 0b1eff265b4635f4d1ffb0a568e5314d856256f8..dd39c4fc595cbc14ddfdab3eb450e338e10c7605 100644 (file)
@@ -688,7 +688,7 @@ static int list_channels(const char *channel_name)
                goto error_channels;
        }
 
-       if (channel_name == NULL) {
+       if (count) {
                MSG("Channels:\n-------------");
        }
 
This page took 0.023096 seconds and 4 git commands to generate.