Browse Source

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.
Rusty Russell 15 years ago
parent
commit
4fc9ee3670
1 changed files with 1 additions and 4 deletions
  1. 1 4
      tools/ccanlint/file_analysis.c

+ 1 - 4
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