X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fexamples_exist.c;h=e308be20ec76289bab821fe77c19f9413eab8f63;hb=79ac0049672b1f27b1a7121d06cc38721f76b8e1;hp=02ddb486268f15e62b686e2b86c675166b728554;hpb=09d5cd70d7e8105a003ed9583eadb077de014f3b;p=ccan diff --git a/tools/ccanlint/tests/examples_exist.c b/tools/ccanlint/tests/examples_exist.c index 02ddb486..e308be20 100644 --- a/tools/ccanlint/tests/examples_exist.c +++ b/tools/ccanlint/tests/examples_exist.c @@ -32,7 +32,8 @@ static char *add_example(struct manifest *m, struct ccan_file *source, *strchr(name, ' ') = '_'; name = temp_file(m, ".c", take(name)); - f = new_ccan_file(m, path_dirname(m, name), path_basename(m, name)); + f = new_ccan_file(m, take(path_dirname(m, name)), + take(path_basename(m, name))); tal_steal(f, name); list_add_tail(&m->examples, &f->list);