From d96fff85314dd59e206b0f9027cafff17f3d1d59 Mon Sep 17 00:00:00 2001 From: Pierre Avital Date: Tue, 16 Jan 2024 16:15:12 +0100 Subject: [PATCH] fix initialization in _z_msg_make_query --- src/protocol/definitions/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/definitions/network.c b/src/protocol/definitions/network.c index b487955ca..922ba8cfd 100644 --- a/src/protocol/definitions/network.c +++ b/src/protocol/definitions/network.c @@ -181,7 +181,7 @@ _z_zenoh_message_t _z_msg_make_query(_Z_MOVE(_z_keyexpr_t) key, _Z_MOVE(_z_bytes ._ext_consolidation = consolidation, ._ext_value = _z_value_steal(value), ._ext_info = _z_source_info_null(), - ._ext_attachment = attachment}, + ._ext_attachment = {.body.decoded = attachment, .is_encoded = false}}, ._ext_budget = 0, ._ext_qos = _Z_N_QOS_DEFAULT, ._ext_target = Z_QUERY_TARGET_BEST_MATCHING,