mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Protect against base_path being NULL. (#358405, many reporters)
2006-09-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooserbutton.c (update_combo_box): Protect against base_path being NULL. (#358405, many reporters)
This commit is contained in:
parent
96741a1b05
commit
1077a08e5d
@ -1,3 +1,8 @@
|
||||
2006-09-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooserbutton.c (update_combo_box): Protect
|
||||
against base_path being NULL. (#358405, many reporters)
|
||||
|
||||
2006-09-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilesystemunix.c: Apply a patch by Padraig O'Briain
|
||||
|
@ -2207,10 +2207,13 @@ update_combo_box (GtkFileChooserButton *button)
|
||||
GtkFilePath *base_path;
|
||||
|
||||
base_path = gtk_file_system_volume_get_base_path (priv->fs, data);
|
||||
row_found = (paths &&
|
||||
paths->data &&
|
||||
gtk_file_path_compare (base_path, paths->data) == 0);
|
||||
gtk_file_path_free (base_path);
|
||||
if (base_path)
|
||||
{
|
||||
row_found = (paths &&
|
||||
paths->data &&
|
||||
gtk_file_path_compare (base_path, paths->data) == 0);
|
||||
gtk_file_path_free (base_path);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user