mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
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:
parent
c223932e40
commit
be8e261da6
2 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
CCAN imported from http://ccodearchive.net.
|
||||
|
||||
CCAN version: init-2491-ga1f9c169
|
||||
CCAN version: init-2494-g4f20b75c
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue