Merge pull request #1743 from Airblader/bug-1742

Remove redundant and broken check for '\0'.
This commit is contained in:
Michael Stapelberg 2015-06-09 23:12:17 +02:00
commit 25da435c3b
1 changed files with 1 additions and 1 deletions

View File

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