]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: don't crash when given --target=hash_if and there's no _info file.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:20 +0000 (23:19 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:20 +0000 (23:19 +1030)
tools/ccanlint/ccanlint.c

index b8dd467a18e78e76891dd2143962084cb1bde8a5..e59912cccfe289b56689ffb654469594d9ed069d 100644 (file)
@@ -665,7 +665,8 @@ int main(int argc, char *argv[])
        }
 
        /* --target overrides known FAIL from _info */
        }
 
        /* --target overrides known FAIL from _info */
-       add_info_options(m->info_file, !target);
+       if (m->info_file)
+               add_info_options(m->info_file, !target);
 
        while ((i = get_next_test(&normal_tests)) != NULL)
                run_test(i, summary, &score, &total_score, m);
 
        while ((i = get_next_test(&normal_tests)) != NULL)
                run_test(i, summary, &score, &total_score, m);