Fix for Cppcheck warnings

Fixed cppcheck warnings reported by customer

Change-Id: Ia6cf5e940d204111d8354f9eec71ac816a142719
CRs-fixed: 901373
This commit is contained in:
Vamana Murthi 2015-09-24 13:34:17 +05:30
parent 30173edcf2
commit e9e399737b

View file

@ -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;
} }