Reorganize slightly to avoid a possible NULL dereference. (Coverity)

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

	* gtk/gtktreeview.c (gtk_tree_view_header_focus): Reorganize slightly
	to avoid a possible NULL dereference.  (Coverity)
This commit is contained in:
Matthias Clasen 2006-04-13 04:31:51 +00:00 committed by Matthias Clasen
parent 3014a278ed
commit 7b19dcbe79
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 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 dereference. (Coverity)
2006-04-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_get_arrow_xrange): Don't

View File

@ -6855,9 +6855,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.
*/