This is an automated email from the ASF dual-hosted git repository. jerpelea pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 5a7a118320c8cdcdb78c116172d371f8fcec7112 Author: SPRESENSE <41312067+sprese...@users.noreply.github.com> AuthorDate: Wed May 19 17:04:44 2021 +0900 arch: cxd56xx: Fix uninitialized variable for gnss driver Fix uninitialized variable in gnss driver. CodeSonar Warning 518288 - 518292 --- arch/arm/src/cxd56xx/cxd56_gnss.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/cxd56xx/cxd56_gnss.c b/arch/arm/src/cxd56xx/cxd56_gnss.c index 13c739a..6a89365 100644 --- a/arch/arm/src/cxd56xx/cxd56_gnss.c +++ b/arch/arm/src/cxd56xx/cxd56_gnss.c @@ -519,7 +519,7 @@ static int cxd56_gnss_get_satellite_system(FAR struct file *filep, unsigned long arg) { int ret; - uint32_t system; + uint32_t system = 0; if (!arg) { @@ -701,7 +701,7 @@ static int cxd56_gnss_get_tcxo_offset(FAR struct file *filep, unsigned long arg) { int ret; - int32_t offset; + int32_t offset = 0; if (!arg) { @@ -1741,7 +1741,7 @@ static int cxd56_gnss_get_rtk_interval(FAR struct file *filep, unsigned long arg) { int ret; - int interval; + int interval = 0; if (!arg) { @@ -1798,7 +1798,7 @@ static int cxd56_gnss_get_rtk_satellite(FAR struct file *filep, unsigned long arg) { int ret; - uint32_t gnss; + uint32_t gnss = 0; if (!arg) { @@ -1855,7 +1855,7 @@ static int cxd56_gnss_get_rtk_ephemeris_enable(FAR struct file *filep, unsigned long arg) { int ret; - int enable; + int enable = 0; if (!arg) {