diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-06-26 02:57:32 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-06-26 02:57:32 +0000 |
commit | c3bb3bef04bef5fe6b8f6c663f9fa2428bfa83fe (patch) | |
tree | 92611297e3df90135bd5fca33342e388bdb10a69 /gtk/gtktreestore.c | |
parent | 8b6934bc2c6140df9094a582a4e5cbeb4f889d20 (diff) | |
download | gdk-pixbuf-c3bb3bef04bef5fe6b8f6c663f9fa2428bfa83fe.tar.gz |
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)
Diffstat (limited to 'gtk/gtktreestore.c')
-rw-r--r-- | gtk/gtktreestore.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index 8d1842739..a66d53917 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -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) |