commit b35e3525be36ddfbb768c81121086bf8e0ae131d
parent ac53239109fc1d86e458ac2480199dfc24ff947e
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date: Fri, 18 Oct 2019 14:58:03 -0700
client: Init variable before usage
Uninitialized 'password' variable used to cause an error when --password
option wasn't avaiable
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)