From 7ae354f191f7b2fcc9a0ccc0a2fcc8aa515639ac Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 17 Dec 2024 15:24:13 +0100 Subject: [PATCH] drivers/at24cxxx: fix uninitialized return value in _set() --- drivers/at24cxxx/at24cxxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/at24cxxx/at24cxxx.c b/drivers/at24cxxx/at24cxxx.c index b3b9e8824d..c40af4d4ee 100644 --- a/drivers/at24cxxx/at24cxxx.c +++ b/drivers/at24cxxx/at24cxxx.c @@ -188,7 +188,7 @@ int _write(const at24cxxx_t *dev, uint32_t pos, const void *data, size_t len) static int _set(const at24cxxx_t *dev, uint32_t pos, uint8_t val, size_t len) { - int check; + int check = 0; uint8_t set_buffer[AT24CXXX_SET_BUF_SIZE]; memset(set_buffer, val, sizeof(set_buffer));