[riot-notifications] [RIOT] clean up: fix some scan-build warnings (#3699)

Martine Lenders notifications at github.com
Thu Sep 17 10:45:47 CEST 2015


> @@ -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(sizeof(uint8_t), ROUND(size)))) {

IIRC @kaspar030 provided an example that wasn't that esoteric a while back ;-)

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3699/files#r39722892
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150917/b5b24a84/attachment-0001.html>


More information about the notifications mailing list