[gdm] Fix SEGV after click "OK" without selections on language dialog.



commit aeea38dd59c49272db1a7475994b8e2c11bb574f
Author: Takao Fujiwara <tfujiwar redhat com>
Date:   Sat Sep 12 12:16:12 2009 +0900

    Fix SEGV after click "OK" without selections on language dialog.
    Bug #536387
    
    Reviewed by Ray Strode

 gui/simple-greeter/gdm-chooser-widget.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-chooser-widget.c b/gui/simple-greeter/gdm-chooser-widget.c
index b3f2a0d..f3aa58b 100644
--- a/gui/simple-greeter/gdm-chooser-widget.c
+++ b/gui/simple-greeter/gdm-chooser-widget.c
@@ -408,6 +408,10 @@ gdm_chooser_widget_get_selected_item (GdmChooserWidget *widget)
 
         get_selected_list_path (widget, &path);
 
+        if (path == NULL) {
+                return NULL;
+        }
+
         model = GTK_TREE_MODEL (widget->priv->list_store);
 
         if (gtk_tree_model_get_iter (model, &iter, path)) {



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