Commit 4fc9ee36 authored by Rusty Russell's avatar Rusty Russell

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.
parent 1fe93863
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment