Reorganize slightly to avoid a possible NULL pointer dereference.

2006-04-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_header_focus): Reorganize slightly
	to avoid a possible NULL pointer dereference.  (Coverity)
This commit is contained in:
Matthias Clasen
2006-04-13 04:33:04 +00:00
committed by Matthias Clasen
parent 1a8f5c8cad
commit e2f29cb987
3 changed files with 14 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2006-04-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_header_focus): Reorganize slightly
to avoid a possible NULL pointer dereference. (Coverity)
2006-04-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_get_arrow_xrange): Don't

View File

@@ -1,3 +1,8 @@
2006-04-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_header_focus): Reorganize slightly
to avoid a possible NULL pointer dereference. (Coverity)
2006-04-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_get_arrow_xrange): Don't

View File

@@ -6858,9 +6858,10 @@ gtk_tree_view_header_focus (GtkTreeView *tree_view,
{
for (tmp_list = tree_view->priv->columns; tmp_list; tmp_list = tmp_list->next)
if (GTK_TREE_VIEW_COLUMN (tmp_list->data)->button == focus_child)
break;
tree_view->priv->focus_column = GTK_TREE_VIEW_COLUMN (tmp_list->data);
{
tree_view->priv->focus_column = GTK_TREE_VIEW_COLUMN (tmp_list->data);
break;
}
/* If the following isn't true, then the view is smaller then the scrollpane.
*/