X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Falgo%2Ffletcher32.c;h=f07ba692ec3d47845dd6bc94771660b758869098;hb=7c66ae1b30f81fd138f9f4b6ad49ac4d527af642;hp=d4f5ac0b6d088aece5dc56c27ca87b524e889111;hpb=e7ee0183e9e42ae6a5f2ebf19d1a4a6c93672a71;p=bertos.git diff --git a/bertos/algo/fletcher32.c b/bertos/algo/fletcher32.c index d4f5ac0b..f07ba692 100644 --- a/bertos/algo/fletcher32.c +++ b/bertos/algo/fletcher32.c @@ -47,7 +47,7 @@ void fletcher32_init(Fletcher32 *f) void fletcher32_update(Fletcher32 *f, const void *_buf, size_t len) { - uint16_t data; + uint16_t data = 0; const uint8_t *buf = (const uint8_t *)_buf; uint8_t last = buf[len-1];