From ccf01ebb81709496554f1450d06b5dc2a09293f8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 2 Nov 2011 09:31:25 +1030 Subject: [PATCH] ccanlint: fix test link when given no arguments. Fallout from commit 758ab1f402b4af3cccac09548b709deca17ef930 (ccanlint: drop -d, interpret any arguments as directories...) --- tools/ccanlint/ccanlint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]; -- 2.39.2