aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-nodes-cover.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-nodes-cover.c')
-rw-r--r--src/bookmarks/ephy-nodes-cover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-nodes-cover.c b/src/bookmarks/ephy-nodes-cover.c
index dfe461ee3..92b2800f3 100644
--- a/src/bookmarks/ephy-nodes-cover.c
+++ b/src/bookmarks/ephy-nodes-cover.c
@@ -162,7 +162,7 @@ ephy_nodes_get_covering (const GPtrArray *parents, const GPtrArray *children,
}
/* While there are more suitable topics... */
- while (count_u[p])
+ while (p < parents->len && count_u[p])
{
/* Update the arrays of uncovered bookmarks and covering topics. */
parent = g_ptr_array_index (parents, p);