From e3d70314b0001d54c4ad45e489ef905ffab65da5 Mon Sep 17 00:00:00 2001 From: Katz Yamada Date: Thu, 18 May 2017 11:00:17 -0700 Subject: Fix for incorrect SVids and timestamps in bugreport Fix SVids and timestamps shown in adb bugreport to align with Android standard. Change-Id: Ib166b09f1d63f7a93d53798dbb188fec0d77e88a CRs-Fixed: 2042937 --- core/SystemStatus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/SystemStatus.cpp') diff --git a/core/SystemStatus.cpp b/core/SystemStatus.cpp index f4f07f2..80406f6 100644 --- a/core/SystemStatus.cpp +++ b/core/SystemStatus.cpp @@ -181,11 +181,12 @@ public: SystemStatusPQWM1parser(const char *str_in, uint32_t len_in) : SystemStatusNmeaBase(str_in, len_in) { + memset(&mM1, 0, sizeof(mM1)); if (mField.size() < eMax) { LOC_LOGE("PQWM1parser - invalid size=%d", mField.size()); + mM1.mTimeValid = 0; return; } - memset(&mM1, 0, sizeof(mM1)); mM1.mGpsWeek = atoi(mField[eGpsWeek].c_str()); mM1.mGpsTowMs = atoi(mField[eGpsTowMs].c_str()); mM1.mTimeValid = atoi(mField[eTimeValid].c_str()); -- cgit v1.2.3