1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #21095 from benpicco/drivers/at24cxxx-fix_set

drivers/at24cxxx: fix uninitialized return value in `_set()`
This commit is contained in:
benpicco 2024-12-17 16:08:48 +00:00 committed by GitHub
commit 91d587f8fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));