From 9a77d6915eed1155c634d4205b48eca610cfd910 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 23 Oct 2017 05:39:57 -0400 Subject: mq_notebook_insert_*(): Require non-NULL sibling/child arguments --- (limited to 'src/notebook.c') 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)), -- cgit v0.9.1