X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fevaluation.cpp;h=2b57de62cbb5ab07c37cceb9e38bd63188390194;hb=319dcddc7409961e156af76666fe70d31baec55a;hp=e6ebeec8e2680b07ef37850847bd67ff62281630;hpb=0114db0ec2407029052eb61a0189c9b1cd64d520;p=lttng-tools.git diff --git a/src/common/evaluation.cpp b/src/common/evaluation.cpp index e6ebeec8e..2b57de62c 100644 --- a/src/common/evaluation.cpp +++ b/src/common/evaluation.cpp @@ -25,9 +25,9 @@ int lttng_evaluation_serialize(const struct lttng_evaluation *evaluation, struct lttng_payload *payload) { int ret; - struct lttng_evaluation_comm evaluation_comm = { - .type = (int8_t) evaluation->type - }; + struct lttng_evaluation_comm evaluation_comm; + + evaluation_comm.type = (int8_t) evaluation->type; ret = lttng_dynamic_buffer_append(&payload->buffer, &evaluation_comm, sizeof(evaluation_comm));