From 02dd32cebb5fe530299d947358bdacdffece005f Mon Sep 17 00:00:00 2001 From: DenisBiryukov91 <155981813+DenisBiryukov91@users.noreply.github.com> Date: Thu, 26 Sep 2024 15:55:47 +0200 Subject: [PATCH] Update examples/unix/c11/z_get_attachment.c Co-authored-by: Alexander Bushnev --- examples/unix/c11/z_get_attachment.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/unix/c11/z_get_attachment.c b/examples/unix/c11/z_get_attachment.c index 74e2dd630..067c7d92c 100644 --- a/examples/unix/c11/z_get_attachment.c +++ b/examples/unix/c11/z_get_attachment.c @@ -69,7 +69,9 @@ void reply_handler(z_loaned_reply_t *reply, void *ctx) { // Check attachment const z_loaned_bytes_t *attachment = z_sample_attachment(sample); - if (attachment == NULL) return; + if (attachment == NULL) { + return; + } z_bytes_reader_t reader = z_bytes_get_reader(attachment); size_t attachment_len; z_bytes_reader_deserialize_sequence_begin(&reader, &attachment_len);