Avoid uninitialized use of &parent_iter. (#145007, John Finlay)
Fri Jun 25 22:49:58 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktreestore.c (gtk_tree_store_move): Avoid uninitialized use of &parent_iter. (#145007, John Finlay)
This commit is contained in:
committed by
Matthias Clasen
parent
8b6934bc2c
commit
c3bb3bef04
@ -2408,12 +2408,17 @@ gtk_tree_store_move (GtkTreeStore *tree_store,
|
||||
}
|
||||
|
||||
if (depth)
|
||||
path = gtk_tree_model_get_path (GTK_TREE_MODEL (tree_store), &parent_iter);
|
||||
{
|
||||
path = gtk_tree_model_get_path (GTK_TREE_MODEL (tree_store), &parent_iter);
|
||||
gtk_tree_model_rows_reordered (GTK_TREE_MODEL (tree_store),
|
||||
path, &parent_iter, order);
|
||||
}
|
||||
else
|
||||
path = gtk_tree_path_new ();
|
||||
|
||||
gtk_tree_model_rows_reordered (GTK_TREE_MODEL (tree_store),
|
||||
path, &parent_iter, order);
|
||||
{
|
||||
path = gtk_tree_path_new ();
|
||||
gtk_tree_model_rows_reordered (GTK_TREE_MODEL (tree_store),
|
||||
path, NULL, order);
|
||||
}
|
||||
|
||||
gtk_tree_path_free (path);
|
||||
if (position)
|
||||
|
||||
Reference in New Issue
Block a user