From 38b28a6b7da33ec8a2e651ecbd5eb18a89bcdbe7 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Fri, 26 Jul 2024 18:53:53 +0200 Subject: [PATCH] Initialize `query_` member of `ZenohQuery` --- rmw_zenoh_cpp/src/detail/rmw_data_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_zenoh_cpp/src/detail/rmw_data_types.hpp b/rmw_zenoh_cpp/src/detail/rmw_data_types.hpp index 7a5be287..ee1adf73 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_data_types.hpp +++ b/rmw_zenoh_cpp/src/detail/rmw_data_types.hpp @@ -218,7 +218,7 @@ class ZenohQuery final const z_loaned_query_t * get_query() const; private: - z_owned_query_t * query_; + z_owned_query_t * query_{nullptr}; }; ///=============================================================================