From f8c5e4ebb6e146ac7ff12290c227b2dd76a717cb Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 16 May 2017 00:21:57 +0200 Subject: [PATCH] Simplify testing name size... Change-Id: I3daa11b329f2e38efba5a52c2106bddd3b759f86 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.16.6