mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
bloom: fix calloc invocation
Fix array member type (`char` vs `uint8_t`). Found via scan-build.
This commit is contained in:
parent
2e3a636b7e
commit
05eb6e73d9
@ -35,7 +35,7 @@ bloom_t *bloom_new(size_t size, size_t num_hashes, ...)
|
||||
}
|
||||
|
||||
/* Allocate Bloom array */
|
||||
if (!(bloom->a = calloc(ROUND(size), sizeof(char)))) {
|
||||
if (!(bloom->a = calloc(ROUND(size), sizeof(uint8_t)))) {
|
||||
free(bloom);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user