Merge "Fix for Cppcheck warnings"

This commit is contained in:
Linux Build Service Account 2015-09-24 21:35:41 -07:00 committed by Gerrit - the friendly Code Review server
commit f75c6e0f7b

View file

@ -563,7 +563,7 @@ const GpsGeofencingInterface* get_geofence_interface(void)
}
dlerror(); /* Clear any existing error */
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);
goto exit;
}