{
int ret;
size_t symbol_name_len;
- struct lttng_event_function_attr_comm comm = { 0 };
+ struct lttng_event_function_attr_comm comm;
+
+ comm.symbol_name_len = 0;
symbol_name_len = lttng_strnlen(
function->symbol_name, sizeof(function->symbol_name));
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. */
struct lttng_payload *payload)
{
int ret;
- struct lttng_event_context_comm context_comm = { 0 };
+ struct lttng_event_context_comm context_comm;
+
+ context_comm.type = 0;
assert(context);
assert(payload);