Remove redundant and broken check for '\0'.

fixes #1742
This commit is contained in:
Ingo Bürk 2015-06-09 22:14:56 +02:00
parent 1d4b5863a5
commit 52c72e9007
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;
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.