Fix for Cppcheck warnings
Fixed cppcheck warnings reported by customer Change-Id: Ia6cf5e940d204111d8354f9eec71ac816a142719 CRs-fixed: 901373
This commit is contained in:
parent
30173edcf2
commit
e9e399737b
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ const GpsGeofencingInterface* get_geofence_interface(void)
|
||||||
}
|
}
|
||||||
dlerror(); /* Clear any existing error */
|
dlerror(); /* Clear any existing error */
|
||||||
get_gps_geofence_interface = (get_gps_geofence_interface_function)dlsym(handle, "gps_geofence_get_interface");
|
get_gps_geofence_interface = (get_gps_geofence_interface_function)dlsym(handle, "gps_geofence_get_interface");
|
||||||
if ((error = dlerror()) != NULL && NULL != get_gps_geofence_interface) {
|
if ((error = dlerror()) != NULL || NULL == get_gps_geofence_interface) {
|
||||||
LOC_LOGE ("%s, dlsym for get_gps_geofence_interface failed, error = %s\n", __func__, error);
|
LOC_LOGE ("%s, dlsym for get_gps_geofence_interface failed, error = %s\n", __func__, error);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue