Build fix: missing initializer for member 'payload'
[lttng-tools.git] / src / common / event.cpp
index 4844888a2df770ca5b9bed7e5dd7a9d758be7def..37c346621b1dd956995259f4687e100d09ea153c 100644 (file)
 #include <lttng/lttng-error.h>
 #include <lttng/userspace-probe-internal.hpp>
 
+namespace {
 struct event_list_element {
        struct lttng_event *event;
        struct lttng_event_exclusion *exclusions;
        char *filter_expression;
 };
+} /* namespace */
 
 static void event_list_destructor(void *ptr)
 {
@@ -111,7 +113,9 @@ static int lttng_event_function_attr_serialize(
 {
        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));
This page took 0.023786 seconds and 4 git commands to generate.