]> git.lizzy.rs Git - bspwm.git/commitdiff
The insertion point might be NULL
authorBastien Dejean <nihilhill@gmail.com>
Wed, 23 Jun 2021 07:33:48 +0000 (09:33 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Wed, 23 Jun 2021 07:33:48 +0000 (09:33 +0200)
Fixes #1306.

src/tree.c

index 6f75dc366307578ad93cccff0e8efe361e5f615c..db8208d86860680314c5f7338a8c3a3fa777407d 100644 (file)
@@ -457,7 +457,7 @@ void insert_receptacle(monitor_t *m, desktop_t *d, node_t *n)
 {
        node_t *r = make_node(XCB_NONE);
        insert_node(m, d, r, n);
-       put_status(SBSC_MASK_NODE_ADD, "node_add 0x%08X 0x%08X 0x%08X 0x%08X\n", m->id, d->id, n->id, r->id);
+       put_status(SBSC_MASK_NODE_ADD, "node_add 0x%08X 0x%08X 0x%08X 0x%08X\n", m->id, d->id, n != NULL ? n->id : 0, r->id);
 
        if (single_monocle && d->layout == LAYOUT_MONOCLE && tiled_count(d->root, true) > 1) {
                set_layout(m, d, d->user_layout, false);