]> git.ozlabs.org Git - ccan-lca-2011.git/commitdiff
ccanlint: fix score for info_summary_single_line
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Jan 2011 05:34:42 +0000 (16:04 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Jan 2011 05:34:42 +0000 (16:04 +1030)
My refactoring introduced a bug: we need to set score=1 for the success case.

tools/ccanlint/tests/info_summary_single_line.c

index 19e9ada5faeeee184e29dc72ef15d9dbf67437b6..b98ab74e729cfeeee0393550788b4168b78c64e9 100644 (file)
@@ -13,6 +13,8 @@ static void check_info_summary_single_line(struct manifest *m,
        struct doc_section *d;
 
        score->pass = true;
+       score->score = 1;
+
        list_for_each(infodocs, d, list) {
                const char *after;