mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user