Fix warning.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 7 Sep 2009 14:38:31 +0000 (14:38 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 7 Sep 2009 14:38:31 +0000 (14:38 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2887 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/eeprom.c

index f92091487ae0cc9daeb2fb7cf7bcbd210a2f8d1a..01f483f20367cc7964c84b379f8aad633e16d808 100644 (file)
@@ -177,7 +177,7 @@ static size_t eeprom_writeVerify(struct KFile *_fd, const void *_buf, size_t siz
 {
        Eeprom *fd = EEPROM_CAST(_fd);
        int retries = 5;
-       size_t wr_len;
+       size_t wr_len = 0;
 
        while (retries--)
        {