diff options
author | Wei (GPS SD) Chen <weic@codeaurora.org> | 2020-10-05 09:33:51 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-10-09 08:41:04 -0700 |
commit | 28da8ac64853c2e3fc089e123bf051334c6965a6 (patch) | |
tree | 37c02559af4372604fdf4857e2a3cbf9850c7b07 | |
parent | 005a322b96f1bf1df4b71cf9a3d4319b538daf73 (diff) |
GNSS adapter: fix kw warning of un-initialized variables
Fix kw warning of un-initialized varilables in gpssUpdateConfig
and gnssGetConfig
Change-Id: Ibfd3f95c18cfde2c257c0538c5b6d87616b16eba
CRs-fixed: 2791260
-rw-r--r-- | gnss/GnssAdapter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnss/GnssAdapter.cpp b/gnss/GnssAdapter.cpp index 441296a..2d63fc1 100644 --- a/gnss/GnssAdapter.cpp +++ b/gnss/GnssAdapter.cpp @@ -1195,7 +1195,8 @@ GnssAdapter::gnssUpdateConfigCommand(const GnssConfig& config) mAdapter(adapter), mApi(api), mConfig(config), - mCount(count) { + mCount(count), + mIds(nullptr) { if (mCount > 0) { mIds = new uint32_t[count]; if (mIds) { @@ -1490,7 +1491,8 @@ GnssAdapter::gnssGetConfigCommand(GnssConfigFlagsMask configMask) { mAdapter(adapter), mApi(api), mConfigMask(configMask), - mCount(count) { + mCount(count), + mIds(nullptr) { if (mCount > 0) { mIds = new uint32_t[count]; if (mIds) { |