some @iceman1001 s coverty scan fixes

great work!
This commit is contained in:
marshmellow42 2016-01-08 18:26:56 -05:00
commit c4c3af7c16
7 changed files with 20 additions and 3 deletions

View file

@ -184,7 +184,7 @@ bool RAMFUNC LogTrace(const uint8_t *btBytes, uint16_t iLen, uint32_t timestamp_
traceLen += iLen;
// parity bytes
if (iLen != 0) {
if (num_paritybytes != 0) {
if (parity != NULL) {
memcpy(trace + traceLen, parity, num_paritybytes);
} else {