summaryrefslogtreecommitdiff
path: root/src/audio/chunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/chunk.cpp')
-rw-r--r--src/audio/chunk.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio/chunk.cpp b/src/audio/chunk.cpp
index 94618ab1..89e54605 100644
--- a/src/audio/chunk.cpp
+++ b/src/audio/chunk.cpp
@@ -42,9 +42,8 @@ auto WriteChunksToStream(MessageBufferHandle_t* stream,
}
// Put together a header.
- cpp::result<size_t, CborError> encoder_res;
CborEncoder arr;
- WriteMessage(
+ cpp::result<size_t, CborError> encoder_res = WriteMessage(
TYPE_CHUNK_HEADER,
[&](CborEncoder& container) {
cbor_encoder_create_array(&container, &arr, 2);