Merge "Clear Location structure before convertion"

This commit is contained in:
Linux Build Service Account 2017-08-11 16:59:20 -07:00 committed by Gerrit - the friendly Code Review server
commit 5c7f025756

View file

@ -124,6 +124,7 @@ GnssAdapter::convertLocation(Location& out, const LocGpsLocation& locGpsLocation
const GpsLocationExtended& locationExtended,
const LocPosTechMask techMask)
{
memset(&out, 0, sizeof(Location));
out.size = sizeof(Location);
if (LOC_GPS_LOCATION_HAS_LAT_LONG & locGpsLocation.flags) {
out.flags |= LOCATION_HAS_LAT_LONG_BIT;