From 4c14c38f44d17da42f7817ecf04b3c1d6d6ccf5c Mon Sep 17 00:00:00 2001 From: Ricardo Mones Date: Tue, 17 Nov 2015 10:59:51 +0100 Subject: [PATCH] =?utf8?q?Fix=20bug=20#3565=20by=20reverting=20=E2=80=9Cfi?= =?utf8?q?x=20bug=203559,=20'Opening=20preferences=20window=20causes=20out?= =?utf8?q?=20of=20bounds=20read'=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This reverts commit 0314464dd5c5e4e49f7fb5835e0316726267506e. --- src/gtk/prefswindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/prefswindow.c b/src/gtk/prefswindow.c index 3b9d3d64a..f6c840b54 100644 --- a/src/gtk/prefswindow.c +++ b/src/gtk/prefswindow.c @@ -320,7 +320,7 @@ static void prefswindow_build_tree(GtkWidget *tree_view, GSList *prefs_pages, gtk_tree_model_foreach(GTK_TREE_MODEL(store), (GtkTreeModelForeachFunc) find_node_by_name, &find_name); - if (i > 0 && find_name.found && page->path[i] != page->path[i-1]) { + if (find_name.found && page->path[i] != page->path[i-1]) { node = find_name.node; gtk_tree_model_get(GTK_TREE_MODEL(store), &node, PREFS_PAGE_DATA, &prefs_node, -- 2.11.4.GIT