network: Remove unneeded initialisations
Don't set those variables to NULL, they should be correctly initialised later in the code, and it might hide uninitialised ones.
This commit is contained in:
parent
73b0fe159d
commit
f7eb52a68b
1 changed files with 9 additions and 9 deletions
|
@ -122,9 +122,9 @@ wireless_dialog_response_cb (GtkDialog *foo,
|
||||||
{
|
{
|
||||||
NMAWirelessDialog *dialog = NMA_WIRELESS_DIALOG (foo);
|
NMAWirelessDialog *dialog = NMA_WIRELESS_DIALOG (foo);
|
||||||
WirelessDialogClosure *closure = user_data;
|
WirelessDialogClosure *closure = user_data;
|
||||||
NMConnection *connection = NULL, *fuzzy_match = NULL;
|
NMConnection *connection, *fuzzy_match = NULL;
|
||||||
NMDevice *device = NULL;
|
NMDevice *device;
|
||||||
NMAccessPoint *ap = NULL;
|
NMAccessPoint *ap;
|
||||||
GSList *all, *iter;
|
GSList *all, *iter;
|
||||||
|
|
||||||
if (response != GTK_RESPONSE_OK)
|
if (response != GTK_RESPONSE_OK)
|
||||||
|
@ -174,7 +174,7 @@ wireless_dialog_response_cb (GtkDialog *foo,
|
||||||
NULL);
|
NULL);
|
||||||
} else {
|
} else {
|
||||||
NMSetting *s_con;
|
NMSetting *s_con;
|
||||||
NMSettingWireless *s_wifi = NULL;
|
NMSettingWireless *s_wifi;
|
||||||
const char *mode = NULL;
|
const char *mode = NULL;
|
||||||
|
|
||||||
/* Entirely new connection */
|
/* Entirely new connection */
|
||||||
|
@ -260,11 +260,11 @@ cc_network_panel_connect_to_8021x_network (CcNetworkPanel *panel,
|
||||||
NMDevice *device,
|
NMDevice *device,
|
||||||
NMAccessPoint *ap)
|
NMAccessPoint *ap)
|
||||||
{
|
{
|
||||||
NMConnection *connection = NULL;
|
NMConnection *connection;
|
||||||
NMSettingConnection *s_con = NULL;
|
NMSettingConnection *s_con;
|
||||||
NMSettingWireless *s_wifi = NULL;
|
NMSettingWireless *s_wifi;
|
||||||
NMSettingWirelessSecurity *s_wsec = NULL;
|
NMSettingWirelessSecurity *s_wsec;
|
||||||
NMSetting8021x *s_8021x = NULL;
|
NMSetting8021x *s_8021x;
|
||||||
NM80211ApSecurityFlags wpa_flags, rsn_flags;
|
NM80211ApSecurityFlags wpa_flags, rsn_flags;
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
char *uuid;
|
char *uuid;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue