[gnome-bluetooth] Initialise state tracking member variables to sane values
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Initialise state tracking member variables to sane values
- Date: Wed, 21 Oct 2009 13:26:36 +0000 (UTC)
commit aabe375077ab40da7dcac5cab9a01b0217df1682
Author: Joshua Lock <josh linux intel com>
Date: Tue Oct 20 13:02:22 2009 +0100
Initialise state tracking member variables to sane values
Uninitialised variables are bad!
https://bugzilla.gnome.org/show_bug.cgi?id=599073
moblin/moblin-panel.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/moblin/moblin-panel.c b/moblin/moblin-panel.c
index 119dac2..8879beb 100644
--- a/moblin/moblin-panel.c
+++ b/moblin/moblin-panel.c
@@ -1458,13 +1458,18 @@ moblin_panel_init (MoblinPanel *self)
GtkWidget *devices_page, *add_page, *setup_page, *ssp_setup_page, *failure_page, *connecting_page;
priv = MOBLIN_PANEL_GET_PRIVATE (self);
- priv->connecting = FALSE;
- priv->target_pincode = NULL;
+ priv->pin_dialog = NULL;
+ priv->target_address = NULL;
priv->target_name = NULL;
+ priv->target_pincode = NULL;
+ priv->target_type = BLUETOOTH_TYPE_ANY;
priv->target_ssp = FALSE;
- priv->automatic_pincode = FALSE;
- priv->pin_dialog = NULL;
+ priv->create_started = FALSE;
priv->display_called = FALSE;
+ priv->user_pincode = NULL;
+ priv->automatic_pincode = FALSE;
+ priv->pincode = NULL;
+ priv->connecting = FALSE;
update_random_pincode (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]