We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2cc873 + 52f7538 commit 0af6777Copy full SHA for 0af6777
1 file changed
src/ELMduino.cpp
@@ -2610,7 +2610,9 @@ void ELM327::parseMultiLineResponse() {
2610
uint8_t totalBytes = 0;
2611
uint8_t bytesReceived = 0;
2612
bool headerFound = false;
2613
- char newResponse[PAYLOAD_LEN] = {0};
+ char newResponse[PAYLOAD_LEN];
2614
+ memset(newResponse, 0, PAYLOAD_LEN * sizeof(char)); // Initialize newResponse to empty string
2615
+
2616
char line[256] = "";
2617
char* start = payload;
2618
char* end = strchr(start, '\r');
0 commit comments