Fix check so as to not use NULL name.

This commit is contained in:
Nicholas Marriott
2026-06-27 10:58:39 +01:00
parent 81f88f8517
commit 84291b021f
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
CHANGES FROM 3.7 to 3.7a
* Fix crash in break-pane when no name is provided.
CHANGES FROM 3.6b TO 3.7
* Add floating panes. These are panes which sit above the layout ("tiled

View File

@@ -114,7 +114,7 @@ cmd_break_pane_exec(struct cmd *self, struct cmdq_item *item)
w->active = wp;
w->latest = tc;
if (name != NULL) {
if (name == NULL) {
newname = default_window_name(w);
window_set_name(w, newname, WINDOW_NAME_FORBID);
free(newname);