From 4fc9ee3670ea2ada55984e996e8563f9dc2ed199 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 16 Mar 2011 14:52:21 +1030 Subject: [PATCH] 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. --- tools/ccanlint/file_analysis.c | 5 +---- 1 file changed, 1 insertion(+), 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 -- 2.39.2