Commit 26f2bfbf authored by Lubomir Rintel's avatar Lubomir Rintel
Browse files

eap-method: fix uninitialized errors

CID 170707 (#1 of 2): Uninitialized scalar variable (UNINIT)
20. uninit_use_in_call: Using uninitialized value scheme when calling nm_setting_802_1x_set_ca_cert
parent 73e29693
......@@ -148,7 +148,7 @@ fill_connection (EAPMethod *parent, NMConnection *connection)
int peapver_active = 0;
GError *error = NULL;
gboolean ca_cert_error = FALSE;
NMSetting8021xCKScheme scheme;
NMSetting8021xCKScheme scheme = NM_SETTING_802_1X_CK_SCHEME_UNKNOWN;
#if LIBNM_BUILD
NMSettingSecretFlags secret_flags;
#endif
......
......@@ -146,7 +146,7 @@ fill_connection (EAPMethod *parent, NMConnection *connection)
GtkTreeModel *model;
GtkTreeIter iter;
GError *error = NULL;
NMSetting8021xCKScheme scheme;
NMSetting8021xCKScheme scheme = NM_SETTING_802_1X_CK_SCHEME_UNKNOWN;
gboolean ca_cert_error = FALSE;
s_8021x = nm_connection_get_setting_802_1x (connection);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment