Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH] scan: Address uninitialized scalars reported by coverity
@ 2019-10-15 17:40 Tim Kourt
  2019-10-16 21:35 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Kourt @ 2019-10-15 17:40 UTC (permalink / raw)
  To: iwd

[-- 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] scan: Address uninitialized scalars reported by coverity
  2019-10-15 17:40 [PATCH] scan: Address uninitialized scalars reported by coverity Tim Kourt
@ 2019-10-16 21:35 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2019-10-16 21:35 UTC (permalink / raw)
  To: iwd

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

Hi Tim,

On 10/15/19 12:40 PM, Tim Kourt wrote:
> ---
>   src/scan.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)

I fixed this slightly differently, see commit 
269377c92f96a7e127694fd0f659262463426edf.  Please review.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-16 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-15 17:40 [PATCH] scan: Address uninitialized scalars reported by coverity Tim Kourt
2019-10-16 21:35 ` Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox