]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Fix segfault when starting i3 (Thanks pnutzh4x0r)
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 18 Oct 2011 17:47:07 +0000 (18:47 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 18 Oct 2011 17:47:07 +0000 (18:47 +0100)
src/workspace.c

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