forked from AuroraMiddleware/gtk
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:
parent
3014a278ed
commit
7b19dcbe79
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
break;
|
||||
}
|
||||
|
||||
/* If the following isn't true, then the view is smaller then the scrollpane.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user