wire-gen: allow NULL for a tlv record in towire

Allowing signaling of no TLV with NULL
This commit is contained in:
lisa neigut 2019-07-26 18:03:26 -05:00 committed by Rusty Russell
parent 42251cc5b9
commit 64b43dd060

View File

@ -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)