Browse Source

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

Allowing signaling of no TLV with NULL
pull/2938/head
lisa neigut 6 years ago
committed by Rusty Russell
parent
commit
64b43dd060
  1. 3
      wire/tlvstream.c

3
wire/tlvstream.c

@ -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…
Cancel
Save