[gnome-control-center] sound: Fix possible infinite loop in combo box



commit f625fbbb59c549cf8dcb550d0c350af07d5132a2
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 20 16:10:06 2011 +0100

    sound: Fix possible infinite loop in combo box

 panels/sound/gvc-combo-box.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/sound/gvc-combo-box.c b/panels/sound/gvc-combo-box.c
index 9cc2a25..a7072fb 100644
--- a/panels/sound/gvc-combo-box.c
+++ b/panels/sound/gvc-combo-box.c
@@ -262,7 +262,7 @@ gvc_combo_box_set_active (GvcComboBox *combo_box,
                         gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combo_box->priv->combobox), &iter);
                         return;
                 }
-                gtk_tree_model_iter_next (combo_box->priv->model, &iter);
+                cont = gtk_tree_model_iter_next (combo_box->priv->model, &iter);
         }
         g_warning ("Could not find id '%s' in combo box", id);
 }



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