]> git.sur5r.net Git - i3/i3/commitdiff
Remove redundant and broken check for '\0'. 1743/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Tue, 9 Jun 2015 20:14:56 +0000 (22:14 +0200)
committerIngo Bürk <ingo.buerk@tngtech.com>
Tue, 9 Jun 2015 20:14:56 +0000 (22:14 +0200)
fixes #1742

src/workspace.c

index c7f1a1bbc0605a30257a72c4bf41511b737b6b46..c327f977e26511bba1ec23745818bd049fe76485 100644 (file)
@@ -129,7 +129,7 @@ Con *create_workspace_on_output(Output *output, Con *content) {
             continue;
         DLOG("relevant command = %s\n", bind->command);
         const char *target = bind->command + strlen("workspace ");
-        while ((*target == ' ' || *target == '\t') && target != '\0')
+        while (*target == ' ' || *target == '\t')
             target++;
         /* We check if this is the workspace
          * next/prev/next_on_output/prev_on_output/back_and_forth/number command.