1
0
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:
René Kijewski 2015-08-25 00:05:49 +02:00 committed by Oleg Hahm
parent 2e3a636b7e
commit 05eb6e73d9

View File

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