Fixed several issues found using a coverity-scan

This commit is contained in:
Martin Holst Swende 2014-10-27 21:46:04 +01:00
commit 90e278d3da
9 changed files with 30 additions and 19 deletions

View file

@ -556,7 +556,7 @@ int CmdManchesterDemod(const char *Cmd)
/* But it does not work if compiling on WIndows: therefore we just allocate a */
/* large array */
uint8_t BitStream[MAX_GRAPH_TRACE_LEN];
uint8_t BitStream[MAX_GRAPH_TRACE_LEN] = {0};
/* Detect high and lows */
for (i = 0; i < GraphTraceLen; i++)