projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa6f4ff
)
ccanlint: don't crash when given --target=hash_if and there's no _info file.
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:20 +0000
(23:19 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 1 Mar 2011 12:49:20 +0000
(23:19 +1030)
tools/ccanlint/ccanlint.c
patch
|
blob
|
history
diff --git
a/tools/ccanlint/ccanlint.c
b/tools/ccanlint/ccanlint.c
index b8dd467a18e78e76891dd2143962084cb1bde8a5..e59912cccfe289b56689ffb654469594d9ed069d 100644
(file)
--- 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);