X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.c;h=fe99f7b4cfe6254d436e718fa87b121dd5452435;hp=73a315722e7b2d3bbe434daab4906cfa12a372a4;hb=ccf01ebb81709496554f1450d06b5dc2a09293f8;hpb=e764d0a27d2b6748ea7d343042ec7d6dda1f6aae diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index 73a31572..fe99f7b4 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -712,15 +712,15 @@ int main(int argc, char *argv[]) if (verbose >= 4) tools_verbose = true; + /* This links back to the module's test dir. */ + testlink = talloc_asprintf(NULL, "%s/test", temp_dir(NULL)); + /* Defaults to pwd. */ if (argc == 1) { i = 1; goto got_dir; } - /* This links back to the module's test dir. */ - testlink = talloc_asprintf(NULL, "%s/test", temp_dir(NULL)); - for (i = 1; i < argc; i++) { unsigned int score, total_score; dir = argv[i];