Silence bogus Coverity warning of uninitialized value
[lttng-tools.git] / src / common / evaluation.c
index c6243d232e82690ab9ca4a39cea3ed4aff1de974..43b4e743f22e807dfd799201387ef40b4df755fc 100644 (file)
@@ -27,9 +27,10 @@ ssize_t lttng_evaluation_serialize(struct lttng_evaluation *evaluation,
                char *buf)
 {
        ssize_t ret, offset = 0;
-       struct lttng_evaluation_comm evaluation_comm;
+       struct lttng_evaluation_comm evaluation_comm = {
+               .type = (int8_t) evaluation->type
+       };
 
-       evaluation_comm.type = (int8_t) evaluation->type;
        if (buf) {
                memcpy(buf, &evaluation_comm, sizeof(evaluation_comm));
        }
This page took 0.02272 seconds and 4 git commands to generate.