Fix crash on compulsory test fail.
authorRusty Russell <rusty@vivaldi>
Sat, 28 Jun 2008 06:37:59 +0000 (16:37 +1000)
committerRusty Russell <rusty@vivaldi>
Sat, 28 Jun 2008 06:37:59 +0000 (16:37 +1000)
tools/ccanlint/ccanlint.c

index 001ee689df834b2e1cdc48b839d9d84a8f71d482..29ad7c6093164ad5f4e25c21c972e55b6a9874d3 100644 (file)
@@ -149,8 +149,9 @@ int main(int argc, char *argv[])
        if (verbose)
                printf("Compulsory tests:\n");
        list_for_each(&tests, i, list)
-               if (!i->total_score && !run_test(i, summary, NULL, NULL, m))
-                       exit(1);
+               if (!i->total_score)
+                       if (!run_test(i, summary, &score, &total_score, m))
+                               exit(1);
 
        if (verbose)
                printf("\nNormal tests:\n");