From e9e399737bc393cd709192d9d6aaa36792d530e0 Mon Sep 17 00:00:00 2001 From: Vamana Murthi Date: Thu, 24 Sep 2015 13:34:17 +0530 Subject: [PATCH] Fix for Cppcheck warnings Fixed cppcheck warnings reported by customer Change-Id: Ia6cf5e940d204111d8354f9eec71ac816a142719 CRs-fixed: 901373 --- loc_api/libloc_api_50001/loc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loc_api/libloc_api_50001/loc.cpp b/loc_api/libloc_api_50001/loc.cpp index f7d7cb45..4076ce3e 100644 --- a/loc_api/libloc_api_50001/loc.cpp +++ b/loc_api/libloc_api_50001/loc.cpp @@ -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; }