tlv: fixup deref for embedded structs on fromwire

This commit is contained in:
lisa neigut 2019-03-27 19:00:07 -07:00 committed by Rusty Russell
parent 37d6545191
commit 48078f7572

View File

@ -864,7 +864,7 @@ struct {struct_name} {{
s = '{}->{} = fromwire_{}(cursor, plen);'.format( s = '{}->{} = fromwire_{}(cursor, plen);'.format(
self.name, f.name, basetype) self.name, f.name, basetype)
else: else:
s = 'fromwire_{}(cursor, plen, *{}->{});'.format( s = 'fromwire_{}(cursor, plen, &{}->{});'.format(
basetype, self.name, f.name) basetype, self.name, f.name)
subcalls.append(s) subcalls.append(s)