From: Rusty Russell Date: Tue, 1 Mar 2011 12:49:20 +0000 (+1030) Subject: ccanlint: don't crash when given --target=hash_if and there's no _info file. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=b55c668069884a1dd0078fb7598c7371ce6c98a9 ccanlint: don't crash when given --target=hash_if and there's no _info file. --- diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index b8dd467a..e59912cc 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -665,7 +665,8 @@ int main(int argc, char *argv[]) } /* --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);