From 7c66ae1b30f81fd138f9f4b6ad49ac4d527af642 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 11 Jan 2012 14:40:21 +0000 Subject: [PATCH] Fix compiler warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5243 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/algo/fletcher32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.25.1