mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
wire-gen: allow NULL for a tlv record in towire
Allowing signaling of no TLV with NULL
This commit is contained in:
parent
42251cc5b9
commit
64b43dd060
@ -143,6 +143,9 @@ void towire_tlvs(u8 **pptr,
|
||||
size_t num_types,
|
||||
const void *record)
|
||||
{
|
||||
if (!record)
|
||||
return;
|
||||
|
||||
for (size_t i = 0; i < num_types; i++) {
|
||||
u8 *val;
|
||||
if (i != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user