X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror-query.cpp;fp=src%2Fcommon%2Ferror-query.cpp;h=b3904104a71d9547fc6906f97f14a596374b64ea;hb=51cf5d01f6bb3035ee33ee6ef2c0ae9352d64a5f;hp=38265fe8bd0d0238e00b1ebbd8349304d59de8aa;hpb=21a887ac1ec6a80b0a42440222d614d5a0f70d58;p=lttng-tools.git diff --git a/src/common/error-query.cpp b/src/common/error-query.cpp index 38265fe8b..b3904104a 100644 --- a/src/common/error-query.cpp +++ b/src/common/error-query.cpp @@ -311,11 +311,11 @@ int lttng_error_query_result_serialize( struct lttng_payload *payload) { int ret; - struct lttng_error_query_result_comm header = { - .type = (uint8_t) result->type, - .name_len = (typeof(header.name_len)) strlen(result->name) + 1, - .description_len = (typeof(header.name_len)) strlen(result->description) + 1, - }; + struct lttng_error_query_result_comm header; + + header.type = (uint8_t) result->type; + header.name_len = (typeof(header.name_len)) strlen(result->name) + 1; + header.description_len = (typeof(header.name_len)) strlen(result->description) + 1; /* Header. */ ret = lttng_dynamic_buffer_append(