Fix: use of uninitialized value in error path
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index c79cc6dd59eb251a7b5c237b1dd7e4c4108dcbe3..0dd12b26f3222584e2b53703a37364ce76c2dcb4 100644 (file)
@@ -1033,6 +1033,9 @@ int lttng_enable_event_with_exclusions(struct lttng_handle *handle,
        bool send_fd = false;
        unsigned int free_filter_expression = 0;
        struct filter_parser_ctx *ctx = NULL;
+
+       memset(&send_buffer, 0, sizeof(send_buffer));
+
        /*
         * Cast as non-const since we may replace the filter expression
         * by a dynamically allocated string. Otherwise, the original
This page took 0.02496 seconds and 5 git commands to generate.