summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 16:08:48 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 16:08:48 (EDT)
commit971b7357fd741fac5f501982cd73925de76e9cc4 (patch)
treedc1dcae4b637f4b1fe547b5ff4222b858170c656
parent5a8791bf727cb3d631ad064f3378c92e6d27d248 (diff)
downloadmarquee-971b7357fd741fac5f501982cd73925de76e9cc4.zip
marquee-971b7357fd741fac5f501982cd73925de76e9cc4.tar.gz
marquee-971b7357fd741fac5f501982cd73925de76e9cc4.tar.bz2
mq_tree_seek(): Split assertion
-rw-r--r--src/tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 0d188b5..fc82cf6 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -125,7 +125,8 @@ MqTree *
mq_tree_seek(MqTree *node, gint offset)
{
/* XXX: Only forward seeking from a tree's root is supported. */
- g_assert(node && node->position == 0);
+ g_assert(node);
+ g_assert(node->position == 0);
g_assert(offset > 0);
/* Skip forward to the containing subtree. */