Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: Tim Kourt <tim.a.kourt@linux.intel.com>
To: iwd@lists.01.org
Subject: [PATCH] scan: Address uninitialized scalars reported by coverity
Date: Tue, 15 Oct 2019 10:40:19 -0700	[thread overview]
Message-ID: <20191015174019.13088-1-tim.a.kourt@linux.intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

---
 src/scan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/scan.c b/src/scan.c
index 790232bb..ec964893 100644
--- a/src/scan.c
+++ b/src/scan.c
@@ -1360,9 +1360,9 @@ static void scan_notify(struct l_genl_msg *msg, void *user_data)
 	const void *data;
 	uint8_t cmd;
 	uint64_t uninitialized_var(attr_wdev_id);
-	bool have_wdev_id;
+	bool have_wdev_id = false;
 	uint32_t uninitialized_var(attr_wiphy);
-	bool have_wiphy;
+	bool have_wiphy = false;
 	struct scan_context *sc;
 	bool active_scan = false;
 
-- 
2.13.6

             reply	other threads:[~2019-10-15 17:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 17:40 Tim Kourt [this message]
2019-10-16 21:35 ` [PATCH] scan: Address uninitialized scalars reported by coverity Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191015174019.13088-1-tim.a.kourt@linux.intel.com \
    --to=tim.a.kourt@linux.intel.com \
    --cc=iwd@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox