]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/ccanlint.c
ccanlint: handle gcov where there's actually no C code
[ccan] / tools / ccanlint / ccanlint.c
index 8f4c5fe0aa959c8a410f004307735da78543ac72..3b7dceb23ababae98ec458d29934a49009d79523 100644 (file)
@@ -150,7 +150,7 @@ static bool run_test(struct ccanlint *i,
        else
                this_score = 0;
 
-       bad = (this_score == 0);
+       bad = (this_score == 0 && i->total_score != 0);
        good = (this_score >= i->total_score);
 
        if (verbose || (bad && !quiet)) {