From 9d0c2d5627206ee3534d1712b4c2c17758da2b2b Mon Sep 17 00:00:00 2001 From: Dante Russo Date: Thu, 18 Sep 2014 17:18:36 -0700 Subject: [PATCH] Remove reduntant clearing of GpsLocation memory GpsLocation memory will now be cleared inside the Loc Api handler itself, so no need to do it a second time before calling into the Loc Api handler. Change-Id: Iec37624621d6eb4806eb8e13c807bb4e40584e39 CRs-fixed: 726800 --- loc_api/libloc_api_50001/loc_eng.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/loc_api/libloc_api_50001/loc_eng.cpp b/loc_api/libloc_api_50001/loc_eng.cpp index 1e8075f7..54bc75d1 100644 --- a/loc_api/libloc_api_50001/loc_eng.cpp +++ b/loc_api/libloc_api_50001/loc_eng.cpp @@ -1981,7 +1981,6 @@ static int loc_eng_get_zpp_handler(loc_eng_data_s_type &loc_eng_data) GpsLocationExtended locationExtended; memset(&locationExtended, 0, sizeof (GpsLocationExtended)); locationExtended.size = sizeof(locationExtended); - memset(&location, 0, sizeof location); ret_val = loc_eng_data.adapter->getZpp(location.gpsLocation, tech_mask); //Mark the location source as from ZPP