From b55c668069884a1dd0078fb7598c7371ce6c98a9 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 1 Mar 2011 23:19:20 +1030 Subject: [PATCH] ccanlint: don't crash when given --target=hash_if and there's no _info file. --- tools/ccanlint/ccanlint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2