diff --git a/drivers/at24cxxx/at24cxxx.c b/drivers/at24cxxx/at24cxxx.c index b3b9e8824d8f..c40af4d4ee87 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));