mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 08:20:08 +01:00
auth-utils: fix possibly uninitialized variables
src/nm-auth-utils.c:343:6: error: 'is_authorized' may be used uninitialized in this function [-Werror=maybe-uninitialized]
if (is_authorized) {
^
src/nm-auth-utils.c:320:11: note: 'is_authorized' was declared here
gboolean is_authorized, is_challenge;
^
src/nm-auth-utils.c:346:13: error: 'is_challenge' may be used uninitialized in this function [-Werror=maybe-uninitialized]
} else if (is_challenge) {
^
src/nm-auth-utils.c:320:26: note: 'is_challenge' was declared here
gboolean is_authorized, is_challenge;
^
This commit is contained in:
parent
857f26dd19
commit
24ab2a4945
1 changed files with 1 additions and 1 deletions
|
|
@ -317,7 +317,7 @@ pk_call_cb (GObject *object, GAsyncResult *result, gpointer user_data)
|
|||
{
|
||||
AuthCall *call = user_data;
|
||||
GError *error = NULL;
|
||||
gboolean is_authorized, is_challenge;
|
||||
gboolean is_authorized = FALSE, is_challenge = FALSE;
|
||||
guint call_result = NM_AUTH_CALL_RESULT_UNKNOWN;
|
||||
|
||||
nm_auth_manager_polkit_authority_check_authorization_finish (NM_AUTH_MANAGER (object),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue