Warning fix: possible use of uninitialized variable
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 9af6d9d4acce64b9b9855e46ed462a624573c693..ba963ffc53c5e15f44ac756ce2842f9767d27ff5 100644 (file)
@@ -188,6 +188,8 @@ static int get_ust_runtime_stats(struct ltt_session *session,
        struct ltt_ust_session *usess;
 
        usess = session->ust_session;
+       assert(discarded_events);
+       assert(lost_packets);
 
        if (!usess || !session->has_been_started) {
                *discarded_events = 0;
@@ -216,6 +218,7 @@ static int get_ust_runtime_stats(struct ltt_session *session,
                *lost_packets += uchan->per_pid_closed_app_lost;
        } else {
                ERR("Unsupported buffer type");
+               assert(0);
                ret = -1;
                goto end;
        }
This page took 0.024294 seconds and 4 git commands to generate.