Bugfix: Fix segfault when starting i3 (Thanks pnutzh4x0r)

This commit is contained in:
Michael Stapelberg 2011-10-18 18:47:07 +01:00
parent f09d9a4c37
commit a506e59b3c
1 changed files with 2 additions and 1 deletions

View File

@ -207,7 +207,8 @@ static void _workspace_show(Con *workspace, bool changed_num_workspaces) {
* the corresponding workspace is cleaned up. */ * the corresponding workspace is cleaned up. */
FREE(previous_workspace_name); FREE(previous_workspace_name);
previous_workspace_name = sstrdup(current->name); if (current)
previous_workspace_name = sstrdup(current->name);
workspace_reassign_sticky(workspace); workspace_reassign_sticky(workspace);