Build fix: missing initializer for member 'payload'
[lttng-tools.git] / src / common / event.cpp
index 37c346621b1dd956995259f4687e100d09ea153c..4207b73471c5b943778c120950f3b7df849fc080 100644 (file)
@@ -766,9 +766,9 @@ int lttng_event_serialize(const struct lttng_event *event,
        for (i = 0; i < exclusion_count; i++) {
                const size_t exclusion_len = lttng_strnlen(
                                *(exclusion_list + i), LTTNG_SYMBOL_NAME_LEN);
-               const struct lttng_event_exclusion_comm exclusion_header = {
-                       .len = (uint32_t) exclusion_len + 1,
-               };
+               struct lttng_event_exclusion_comm exclusion_header;
+
+               exclusion_header.len = (uint32_t) exclusion_len + 1;
 
                if (exclusion_len == LTTNG_SYMBOL_NAME_LEN) {
                        /* Exclusion is not NULL-terminated. */
This page took 0.02367 seconds and 4 git commands to generate.