Mercurial > public > ostc4
diff Discovery/Src/tComm.c @ 51:8f8ea3a32e82
Resolved warnings pointing to possible invalid memory access
author | Ideenmodellierer |
---|---|
date | Tue, 31 Jul 2018 22:28:21 +0200 |
parents | 5f11787b4f42 |
children | b7689d9e888a |
line wrap: on
line diff
--- a/Discovery/Src/tComm.c Mon Jul 30 11:37:39 2018 +0200 +++ b/Discovery/Src/tComm.c Tue Jul 31 22:28:21 2018 +0200 @@ -1351,7 +1351,7 @@ uint8_t serialBuffer[10]; uint32_t length1, length2, lengthCompare, offsetCompare, ByteCompareStatus; uint32_t lengthTotal, offsetTotal, pruefsumme, pruefsummeCalc; - uint32_t checksum, checksumCalc; + uint32_t checksum, checksumCalc = 0; uint8_t id; const uint8_t id_Region1_firmware = 0xFF; const uint8_t id_RTE = 0xFE;