diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-06 15:40:57 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-06 15:40:57 -0500 |
commit | 50c63116eba8ea3703b44d82f19eb408ad9d7007 (patch) | |
tree | 259580c43e8e704874ef14e58f62f29481ec588e /src | |
parent | c55d6bf59167c75439c1c40e9dcd8c05081d4685 (diff) |
Initialize outgoing payload to 0.
Diffstat (limited to 'src')
-rw-r--r-- | src/obd2/obd2.c | 2 |
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, |