mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 15:20:42 +01:00
client: Init variable before usage
Uninitialized 'password' variable used to cause an error when --password option wasn't avaiable
This commit is contained in:
parent
ac53239109
commit
b35e3525be
@ -240,7 +240,7 @@ static struct l_dbus_message *request_user_password_command_option(
|
|||||||
struct l_dbus_message *message)
|
struct l_dbus_message *message)
|
||||||
{
|
{
|
||||||
struct l_dbus_message *reply;
|
struct l_dbus_message *reply;
|
||||||
const char *password;
|
const char *password = NULL;
|
||||||
|
|
||||||
command_option_get(COMMAND_OPTION_PASSWORD, &password);
|
command_option_get(COMMAND_OPTION_PASSWORD, &password);
|
||||||
if (!password)
|
if (!password)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user