Fix: error when listing sessions with no session
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index f50ca306145f9b30e28b24f3bfea500f9181f1f4..20dca8132186e46531589d9294b31a44dc52e9b3 100644 (file)
@@ -2077,7 +2077,6 @@ int lttng_list_sessions(struct lttng_session **out_sessions)
        lsm.cmd_type = LTTNG_LIST_SESSIONS;
        ret = lttng_ctl_ask_sessiond(&lsm, (void**) &sessions);
        if (ret <= 0) {
-               ret = ret == 0 ? -LTTNG_ERR_FATAL : ret;
                goto end;
        }
        if (!sessions) {
This page took 0.031117 seconds and 4 git commands to generate.