mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Always initialize out params
This was causing a crash in the appearance capplet, reported in bug 596345.
This commit is contained in:
parent
7d196b3939
commit
894e11e447
@ -3469,6 +3469,9 @@ gtk_icon_view_get_item_at_coords (GtkIconView *icon_view,
|
||||
GList *items, *l;
|
||||
GdkRectangle box;
|
||||
|
||||
if (cell_at_pos)
|
||||
*cell_at_pos = NULL;
|
||||
|
||||
for (items = icon_view->priv->items; items; items = items->next)
|
||||
{
|
||||
GtkIconViewItem *item = items->data;
|
||||
@ -3503,9 +3506,6 @@ gtk_icon_view_get_item_at_coords (GtkIconView *icon_view,
|
||||
}
|
||||
}
|
||||
|
||||
if (cell_at_pos)
|
||||
*cell_at_pos = NULL;
|
||||
|
||||
if (only_in_cell)
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user