X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fevent.cpp;h=37c346621b1dd956995259f4687e100d09ea153c;hp=e17a560cf811bd5dd781200d1cdcf7385927b690;hb=c58be5fff5569f2959c79651e02af0a5f641ccb3;hpb=219d1f6ac5b3e339e9f730a91ea4ad98fee15e77 diff --git a/src/common/event.cpp b/src/common/event.cpp index e17a560cf..37c346621 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -113,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));