Code Review
/
apps
/
low-level-can-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8e9b039
)
Fix: Make sure can_message_t.data_ member has been
author
Romain Forlot
<romain.forlot@iot.bzh>
Thu, 2 Mar 2017 22:06:22 +0000
(23:06 +0100)
committer
Romain Forlot
<romain.forlot@iot.bzh>
Thu, 2 Mar 2017 22:06:31 +0000
(23:06 +0100)
clear before use it again.
Change-Id: Ib073d67651cd3272190ef7464e806cf1f22b4cf3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/can-message.cpp
patch
|
blob
|
history
diff --git
a/src/can-message.cpp
b/src/can-message.cpp
index
3905943
..
5d01880
100644
(file)
--- a/
src/can-message.cpp
+++ b/
src/can-message.cpp
@@
-152,6
+152,7
@@
void can_message_t::set_data(const __u8* new_data)
{
int i;
+ data_.clear();
/* maxdlen_ is now set at CAN_MAX_DLEN or CANFD_MAX_DLEN, respectively 8 and 64 bytes*/
for(i=0;i<maxdlen_;i++)
{