Skip to content

Commit 6e7268d

Browse files
Jeppe Odgaardcfriedt
authored andcommitted
mgmt/mcumgr: add missing designator to ZCBOR_MAP_DECODE_KEY_DECODER
Add missing `.key` designator. This also fixes a compile error: > error: either all initializer clauses should be designated or none of them should be Signed-off-by: Jeppe Odgaard <[email protected]>
1 parent 27011fe commit 6e7268d

File tree

1 file changed

+1
-1
lines changed
  • subsys/mgmt/mcumgr/util/include/mgmt/mcumgr/util

1 file changed

+1
-1
lines changed

subsys/mgmt/mcumgr/util/include/mgmt/mcumgr/util/zcbor_bulk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct zcbor_map_decode_key_val {
3434
*/
3535
#define ZCBOR_MAP_DECODE_KEY_DECODER(k, dec, vp) \
3636
{ \
37-
{ \
37+
.key = { \
3838
.value = k, \
3939
.len = sizeof(k) - 1, \
4040
}, \

0 commit comments

Comments
 (0)