From dde924399b8e16de3e2426af8a44b4fde95c5f48 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 23 Nov 2010 12:06:31 +1030 Subject: [PATCH] ccanlint: fix -x core dump This wasn't fixed when we converted to ccan/opt in 8d70667887. Unfortunately, unistd.h defines optarg, so the compiler didn't catch this. --- tools/ccanlint/ccanlint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index e70eca1b..58ca1f53 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -318,7 +318,7 @@ static char *keep_test(const char *testname, void *unused) static char *skip_test(const char *testname, void *unused) { - btree_insert(cmdline_exclude, optarg); + btree_insert(cmdline_exclude, testname); return NULL; } -- 2.39.2