summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorNilesh Gharde <ngharde@codeaurora.org>2019-05-28 12:23:50 +0530
committerNilesh Gharde <ngharde@codeaurora.org>2019-05-29 10:46:26 +0530
commit41a8510ce10241134f4a9b86d9e1182d06f96cde (patch)
treed20e4c4994a9f03528f3290a6f64903669418717 /android
parent51426e477b340950d7614ce6b1a7857b6a9b544f (diff)
downloadgps-41a8510ce10241134f4a9b86d9e1182d06f96cde.tar.gz
KW issues on LA.UM.8.12
Addressed KW issue in MeasurementAPIClient.cpp Change-Id: Id35187c9e8eb29a81a86d12423e965fef780d668 CRs-Fixed: 2460424
Diffstat (limited to 'android')
-rw-r--r--android/2.0/location_api/MeasurementAPIClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/2.0/location_api/MeasurementAPIClient.cpp b/android/2.0/location_api/MeasurementAPIClient.cpp
index eb0c7d1..dc972ec 100644
--- a/android/2.0/location_api/MeasurementAPIClient.cpp
+++ b/android/2.0/location_api/MeasurementAPIClient.cpp
@@ -217,7 +217,7 @@ void MeasurementAPIClient::onGnssMeasurementsCb(
static void convertGnssMeasurement(GnssMeasurementsData& in,
V1_0::IGnssMeasurementCallback::GnssMeasurement& out)
{
- memset(&out, 0, sizeof(IGnssMeasurementCallback::GnssMeasurement));
+ memset(&out, 0, sizeof(out));
if (in.flags & GNSS_MEASUREMENTS_DATA_SIGNAL_TO_NOISE_RATIO_BIT)
out.flags |= IGnssMeasurementCallback::GnssMeasurementFlags::HAS_SNR;
if (in.flags & GNSS_MEASUREMENTS_DATA_CARRIER_FREQUENCY_BIT)