X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ferror-query.cpp;h=1444be1750e5542c24504fefd052783f21e0eab3;hp=b3904104a71d9547fc6906f97f14a596374b64ea;hb=332000d3213e4d0a8d5e4c889ff0c1cf5171d39c;hpb=51cf5d01f6bb3035ee33ee6ef2c0ae9352d64a5f diff --git a/src/common/error-query.cpp b/src/common/error-query.cpp index b3904104a..1444be175 100644 --- a/src/common/error-query.cpp +++ b/src/common/error-query.cpp @@ -565,9 +565,9 @@ int lttng_error_query_results_serialize( size_t result_index; const size_t result_count = lttng_dynamic_pointer_array_get_count( &results->results); - const struct lttng_error_query_results_comm header = { - .count = (decltype(header.count)) result_count, - }; + struct lttng_error_query_results_comm header; + + header.count = (decltype(header.count)) result_count; /* Header. */ ret = lttng_dynamic_buffer_append(&payload->buffer, &header, sizeof(header));