ccan: update to include opt_unregister fix.

This was caught by valgrind on Travis, and really confused me.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2020-02-11 14:45:20 +10:30
parent c223932e40
commit be8e261da6
2 changed files with 3 additions and 2 deletions

View file

@ -1,3 +1,3 @@
CCAN imported from http://ccodearchive.net.
CCAN version: init-2491-ga1f9c169
CCAN version: init-2494-g4f20b75c

View file

@ -189,7 +189,8 @@ bool opt_unregister(const char *names)
if (found == -1)
return false;
opt_count--;
memmove(&opt_table[found], &opt_table[found+1], opt_count - found);
memmove(&opt_table[found], &opt_table[found+1],
(opt_count - found) * sizeof(opt_table[found]));
return true;
}