Commit b55c6680 authored by Rusty Russell's avatar Rusty Russell

ccanlint: don't crash when given --target=hash_if and there's no _info file.

parent aa6f4ffe
...@@ -665,7 +665,8 @@ int main(int argc, char *argv[]) ...@@ -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) while ((i = get_next_test(&normal_tests)) != NULL)
run_test(i, summary, &score, &total_score, m); run_test(i, summary, &score, &total_score, m);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment