diff --git a/mesh/crypto.c b/mesh/crypto.c
index df597bb..9953659 100644
--- a/mesh/crypto.c
+++ b/mesh/crypto.c
uint8_t data[20];
uint8_t mic[8];
} crypto;
- uint8_t bytes[0];
+ uint8_t bytes[73];
} u;
uint8_t out_msg[sizeof(u.crypto.data) + sizeof(u.crypto.mic)];
diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
index 97267b6..7362112 100644
--- a/mesh/mesh-config-json.c
+++ b/mesh/mesh-config-json.c
bool mesh_config_write_seq_number(struct mesh_config *cfg, uint32_t seq,
bool cache)
{
- int value;
+ int value = 0;
uint32_t cached = 0;
if (!cfg)