summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 05:39:57 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 05:42:04 (EDT)
commit9a77d6915eed1155c634d4205b48eca610cfd910 (patch)
tree5385f3396f25238d44778c65c377ae932ad67d4d
parenta7f145b45e648a362da0e7a325adc279fe9a8604 (diff)
downloadmarquee-9a77d6915eed1155c634d4205b48eca610cfd910.zip
marquee-9a77d6915eed1155c634d4205b48eca610cfd910.tar.gz
marquee-9a77d6915eed1155c634d4205b48eca610cfd910.tar.bz2
mq_notebook_insert_*(): Require non-NULL sibling/child arguments
-rw-r--r--src/notebook.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 566b95b..88bfa3f 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -184,6 +184,8 @@ mq_notebook_insert_sibling(MqNotebook *notebook, const gchar *uri,
{
MqTabTree *node;
+ g_assert(sibling);
+
find_node(notebook, sibling);
node = MQ_TAB_TREE(mq_tree_insert_sibling_allocated(
MQ_TREE(g_new0(MqTabTree, 1)),
@@ -201,6 +203,8 @@ mq_notebook_insert_child(MqNotebook *notebook, const gchar *uri,
{
MqTabTree *node;
+ g_assert(child);
+
find_node(notebook, child);
node = MQ_TAB_TREE(mq_tree_insert_child_allocated(
MQ_TREE(g_new0(MqTabTree, 1)),