Simplify testing name size...
authorRomain Forlot <romain.forlot@iot.bzh>
Mon, 15 May 2017 22:21:57 +0000 (00:21 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 19 May 2017 09:36:42 +0000 (11:36 +0200)
Change-Id: I3daa11b329f2e38efba5a52c2106bddd3b759f86
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp

index a52bd8f..c1b0640 100644 (file)
@@ -523,7 +523,7 @@ openxc_VehicleMessage diagnostic_manager_t::relay_diagnostic_response(active_dia
                value = adr->get_decoder()(&response, value);
        }
 
                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.
        {
                // If name, include 'value' instead of payload, and leave of response
                // details.