]> git.ozlabs.org Git - ccan/commitdiff
tools: actually add non-source files to other_files in manifest
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 16 Mar 2011 04:22:21 +0000 (14:52 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 16 Mar 2011 04:22:47 +0000 (14:52 +1030)
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

index e8c8ebc6dbb057f24849a6edd541c5c6cfda028d..92c23798292c9844058374f22115b324345ae720 100644 (file)
@@ -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;
                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
                        if (is_c_src)
                                dest = &m->c_files;
                        else