From a14d1c24709041931f92b653784d102fab12adae Mon Sep 17 00:00:00 2001 From: Pierre Avital Date: Thu, 18 Jan 2024 09:48:21 +0100 Subject: [PATCH] fix default constructor for put options --- src/api/api.c | 5 +++-- zenohpico.pc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/api.c b/src/api/api.c index 1b7eecb48..a320ec0d2 100644 --- a/src/api/api.c +++ b/src/api/api.c @@ -601,7 +601,8 @@ void z_publisher_drop(z_owned_publisher_t *val) { z_undeclare_publisher(val); } z_put_options_t z_put_options_default(void) { return (z_put_options_t){.encoding = z_encoding_default(), .congestion_control = Z_CONGESTION_CONTROL_DEFAULT, - .priority = Z_PRIORITY_DEFAULT}; + .priority = Z_PRIORITY_DEFAULT, + .attachment = z_attachment_null()}; } z_delete_options_t z_delete_options_default(void) { @@ -678,7 +679,7 @@ int8_t z_undeclare_publisher(z_owned_publisher_t *pub) { } z_publisher_put_options_t z_publisher_put_options_default(void) { - return (z_publisher_put_options_t){.encoding = z_encoding_default()}; + return (z_publisher_put_options_t){.encoding = z_encoding_default(), .attachment = z_attachment_null()}; } z_publisher_delete_options_t z_publisher_delete_options_default(void) { diff --git a/zenohpico.pc b/zenohpico.pc index 5d300add1..13a28765e 100644 --- a/zenohpico.pc +++ b/zenohpico.pc @@ -3,6 +3,6 @@ prefix=/usr/local Name: zenohpico Description: URL: -Version: 0.11.20240117dev +Version: 0.11.20240118dev Cflags: -I${prefix}/include Libs: -L${prefix}/lib -lzenohpico