summaryrefslogtreecommitdiff
path: root/tools/ccanlint/file_analysis.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-03-16 14:52:21 +1030
committerRusty Russell <rusty@rustcorp.com.au>2011-03-16 14:52:47 +1030
commit4fc9ee3670ea2ada55984e996e8563f9dc2ed199 (patch)
tree81c12d46610bd4211a3c953ad406286113b174fe /tools/ccanlint/file_analysis.c
parent1fe93863f1af6085ff7c3b1e0b1774744ee1e2e6 (diff)
tools: actually add non-source files to other_files in manifest
We don't use it for the moment, but Brad Hards noted that assigning to dest ten continuing was pointless, revealing this bug.
Diffstat (limited to 'tools/ccanlint/file_analysis.c')
-rw-r--r--tools/ccanlint/file_analysis.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/ccanlint/file_analysis.c b/tools/ccanlint/file_analysis.c
index e8c8ebc6..92c23798 100644
--- a/tools/ccanlint/file_analysis.c
+++ b/tools/ccanlint/file_analysis.c
@@ -135,10 +135,7 @@ static void add_files(struct manifest *m, const char *dir)
is_c_src = strends(f->name, ".c");
if (!is_c_src && !strends(f->name, ".h")) {
dest = &m->other_files;
- continue;
- }
-
- if (!strchr(f->name, '/')) {
+ } else if (!strchr(f->name, '/')) {
if (is_c_src)
dest = &m->c_files;
else