Fix compiler warning.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jan 2012 14:40:21 +0000 (14:40 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jan 2012 14:40:21 +0000 (14:40 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5243 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/algo/fletcher32.c

index d4f5ac0b6d088aece5dc56c27ca87b524e889111..f07ba692ec3d47845dd6bc94771660b758869098 100644 (file)
@@ -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];