From 52c72e900756b89b617ac31dd7fdc0d19c7390d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Tue, 9 Jun 2015 22:14:56 +0200 Subject: [PATCH] Remove redundant and broken check for '\0'. fixes #1742 --- src/workspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workspace.c b/src/workspace.c index c7f1a1bb..c327f977 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -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. -- 2.39.5