X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Fdestruction-handle.cpp;h=3882a587e830e12e61926b38c852ff7d08b9fb8d;hb=64803277bbdbe0a943360d918298a48157d9da55;hp=35a1c358225376de7c7a3fa5de1614a93e8c9312;hpb=4bd69c5f1161cd065f487da0f4c1aa03a73c47e4;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/destruction-handle.cpp b/src/lib/lttng-ctl/destruction-handle.cpp index 35a1c3582..3882a587e 100644 --- a/src/lib/lttng-ctl/destruction-handle.cpp +++ b/src/lib/lttng-ctl/destruction-handle.cpp @@ -8,16 +8,16 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "lttng-ctl-helper.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "lttng-ctl-helper.hpp" #include #include @@ -69,7 +69,7 @@ struct lttng_destruction_handle *lttng_destruction_handle_create( int sessiond_socket) { int ret; - struct lttng_destruction_handle *handle = (lttng_destruction_handle *) zmalloc(sizeof(*handle)); + struct lttng_destruction_handle *handle = zmalloc(); if (!handle) { goto end; @@ -391,6 +391,10 @@ enum lttng_error_code lttng_destroy_session_ext(const char *session_name, enum lttng_error_code ret_code = LTTNG_OK; struct lttcomm_session_msg lsm = { .cmd_type = LTTNG_DESTROY_SESSION, + .session = {}, + .domain = {}, + .u = {}, + .fd_count = 0, }; int sessiond_socket = -1; struct lttng_destruction_handle *handle = NULL;