[gnome-control-center] network: Fix possible incorrect exit of the loop



commit d941ca15af9799efbba55bc62ee5a4f1a0668dae
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 1 23:03:54 2012 +0200

    network: Fix possible incorrect exit of the loop
    
    A bug fix for the Proxy page handling

 panels/network/cc-network-panel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index b614538..68b0dc1 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -424,7 +424,7 @@ handle_argv (CcNetworkPanel *panel)
         while (ret) {
                 GObject *object_tmp;
                 NMDevice *device;
-                gboolean done;
+                gboolean done = FALSE;
 
                 gtk_tree_model_get (model, &iter,
                                     PANEL_DEVICES_COLUMN_OBJECT, &object_tmp,
@@ -438,7 +438,7 @@ handle_argv (CcNetworkPanel *panel)
                 g_object_unref (object_tmp);
 
                 if (done)
-                        break;
+                        return;
 
                 ret = gtk_tree_model_iter_next (model, &iter);
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]