]> git.sur5r.net Git - i3/i3/commitdiff
Merge pull request #1743 from Airblader/bug-1742
authorMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 9 Jun 2015 21:12:17 +0000 (23:12 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 9 Jun 2015 21:12:17 +0000 (23:12 +0200)
Remove redundant and broken check for '\0'.

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.