diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-16 00:21:57 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-19 11:36:42 +0200 |
commit | f8c5e4ebb6e146ac7ff12290c227b2dd76a717cb (patch) | |
tree | 20a7373b7fd9a14e42b6bc193d0cc4e7ad0cd807 | |
parent | 4175b4d28fe79e5a01d04625b5a50da6214b86b1 (diff) |
Simplify testing name size...
Change-Id: I3daa11b329f2e38efba5a52c2106bddd3b759f86
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp b/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp index a52bd8fd..c1b06406 100644 --- a/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp +++ b/CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp @@ -523,7 +523,7 @@ openxc_VehicleMessage diagnostic_manager_t::relay_diagnostic_response(active_dia value = adr->get_decoder()(&response, value); } - if((response.success && strnlen(adr->get_name().c_str(), adr->get_name().size())) > 0) + if((response.success && adr->get_name().size()) > 0) { // If name, include 'value' instead of payload, and leave of response // details. |