Skip to content

Commit

Permalink
Update examples/unix/c11/z_get_attachment.c
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Bushnev <[email protected]>
  • Loading branch information
DenisBiryukov91 and sashacmc authored Sep 26, 2024
1 parent b406fe7 commit 02dd32c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/unix/c11/z_get_attachment.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 02dd32c

Please sign in to comment.