Commit ccf01ebb authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix test link when given no arguments.

Fallout from commit 758ab1f4
(ccanlint: drop -d, interpret any arguments as directories...)
parent e764d0a2
......@@ -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];
......
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