Commit dde92439 authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix -x core dump

This wasn't fixed when we converted to ccan/opt in 8d706678.

Unfortunately, unistd.h defines optarg, so the compiler didn't catch
this.
parent ef9dec60
......@@ -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;
}
......
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