* [PATCH] client: Init variable before usage
@ 2019-10-18 21:58 Tim Kourt
2019-10-21 16:03 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Tim Kourt @ 2019-10-18 21:58 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 616 bytes --]
Uninitialized 'password' variable used to cause an error when --password
option wasn't avaiable
---
client/agent.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/agent.c b/client/agent.c
index 5844acdd..5ed6538f 100644
--- a/client/agent.c
+++ b/client/agent.c
@@ -240,7 +240,7 @@ static struct l_dbus_message *request_user_password_command_option(
struct l_dbus_message *message)
{
struct l_dbus_message *reply;
- const char *password;
+ const char *password = NULL;
command_option_get(COMMAND_OPTION_PASSWORD, &password);
if (!password)
--
2.13.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-21 16:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-18 21:58 [PATCH] client: Init variable before usage Tim Kourt
2019-10-21 16:03 ` Denis Kenzior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox