configurator: Fix compiler warning with compare
[ccan] / tools / configurator / configurator.c
index daa90ee3be8ff2811653ef52d51aebe327e9ce03..e9ff5ef13ec057763dee3140fba5c719a0cc5058 100644 (file)
@@ -489,7 +489,7 @@ static bool run_test(const char *cmd, struct test *test)
                char *dep;
 
                /* Space-separated dependencies, could be ! for inverse. */
                char *dep;
 
                /* Space-separated dependencies, could be ! for inverse. */
-               while ((len = strcspn(deps, " "))) {
+               while ((len = strcspn(deps, " ")) != 0) {
                        bool positive = true;
                        if (deps[len]) {
                                dep = strdup(deps);
                        bool positive = true;
                        if (deps[len]) {
                                dep = strdup(deps);