talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 4c14c38f44d17da42f7817ecf04b3c1d6d6ccf5c
parent 8f65fc9f8be8d30ba67d8f4a64256e8645aa0dc1
Author: Ricardo Mones <ricardo@mones.org>
Date:   Tue, 17 Nov 2015 10:59:51 +0100

Fix bug #3565 by reverting “fix bug 3559, 'Opening preferences window causes out of bounds read'”

This reverts commit 0314464dd5c5e4e49f7fb5835e0316726267506e.

Diffstat:
Msrc/gtk/prefswindow.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,