]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/ccanlint.c
ccanlint: don't crash when given --target=hash_if and there's no _info file.
[ccan] / 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 */
-       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);