aboutsummaryrefslogtreecommitdiffstats
path: root/src/obd2/obd2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/obd2/obd2.c')
-rw-r--r--src/obd2/obd2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/obd2/obd2.c b/src/obd2/obd2.c
index fa20f91a..cfede4e9 100644
--- a/src/obd2/obd2.c
+++ b/src/obd2/obd2.c
@@ -34,7 +34,7 @@ DiagnosticRequestHandle diagnostic_request(DiagnosticShims* shims,
completed: false
};
- uint8_t payload[MAX_DIAGNOSTIC_PAYLOAD_SIZE];
+ uint8_t payload[MAX_DIAGNOSTIC_PAYLOAD_SIZE] = {0};
payload[MODE_BYTE_INDEX] = request->mode;
if(request->pid_length > 0) {
set_bitfield(request->pid, PID_BYTE_INDEX * CHAR_BIT,