From b35e3525be36ddfbb768c81121086bf8e0ae131d Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Fri, 18 Oct 2019 14:58:03 -0700 Subject: [PATCH] client: Init variable before usage 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)