diff --git a/components/drivers/spi/sfud/src/sfud.c b/components/drivers/spi/sfud/src/sfud.c index 30e0d949f1..f666b06806 100644 --- a/components/drivers/spi/sfud/src/sfud.c +++ b/components/drivers/spi/sfud/src/sfud.c @@ -691,7 +691,7 @@ __exit: static sfud_err aai_write(const sfud_flash *flash, uint32_t addr, size_t size, const uint8_t *data) { sfud_err result = SFUD_SUCCESS; const sfud_spi *spi = &flash->spi; - uint8_t cmd_data[6], cmd_size; + uint8_t cmd_data[8], cmd_size; bool first_write = true; SFUD_ASSERT(flash); diff --git a/components/net/at/at_socket/at_socket.c b/components/net/at/at_socket/at_socket.c index cccb35ae1a..054c5508c9 100644 --- a/components/net/at/at_socket/at_socket.c +++ b/components/net/at/at_socket/at_socket.c @@ -737,7 +737,7 @@ int at_recv(int s, void *mem, size_t len, int flags) int at_sendto(int socket, const void *data, size_t size, int flags, const struct sockaddr *to, socklen_t tolen) { - struct at_socket *sock; + struct at_socket *sock = RT_NULL; int len, result = 0; if (at_dev_ops == RT_NULL)