]> git.sur5r.net Git - i3/i3/commitdiff
workspace_show: remove redundant if 3199/head
authorOrestis Floros <orestisf1993@gmail.com>
Sat, 24 Mar 2018 13:14:20 +0000 (15:14 +0200)
committerOrestis Floros <orestisf1993@gmail.com>
Sat, 24 Mar 2018 13:15:02 +0000 (15:15 +0200)
src/workspace.c

index 2d574e2a14ae03d6aff743bcf8a3bfadd8237216..edd3ee6f0306f69f96041f8e30d76b658aa01bfe 100644 (file)
@@ -397,10 +397,8 @@ void workspace_show(Con *workspace) {
      * focused) are skipped, see bug #868. */
     if (current && !con_is_internal(current)) {
         FREE(previous_workspace_name);
-        if (current) {
-            previous_workspace_name = sstrdup(current->name);
-            DLOG("Setting previous_workspace_name = %s\n", previous_workspace_name);
-        }
+        previous_workspace_name = sstrdup(current->name);
+        DLOG("Setting previous_workspace_name = %s\n", previous_workspace_name);
     }
 
     workspace_reassign_sticky(workspace);