Add a null check to `full_text` and `short_text` for a block before
setting the markup property to avoid a segfault.
}
i3string_set_markup(new_block->full_text, new_block->is_markup);
}
i3string_set_markup(new_block->full_text, new_block->is_markup);
- i3string_set_markup(new_block->short_text, new_block->is_markup);
+
+ if (new_block->short_text != NULL)
+ i3string_set_markup(new_block->short_text, new_block->is_markup);
TAILQ_INSERT_TAIL(&statusline_buffer, new_block, blocks);
return 1;
TAILQ_INSERT_TAIL(&statusline_buffer, new_block, blocks);
return 1;