mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
tlv: fixup deref for embedded structs on fromwire
This commit is contained in:
parent
37d6545191
commit
48078f7572
@ -864,7 +864,7 @@ struct {struct_name} {{
|
||||
s = '{}->{} = fromwire_{}(cursor, plen);'.format(
|
||||
self.name, f.name, basetype)
|
||||
else:
|
||||
s = 'fromwire_{}(cursor, plen, *{}->{});'.format(
|
||||
s = 'fromwire_{}(cursor, plen, &{}->{});'.format(
|
||||
basetype, self.name, f.name)
|
||||
subcalls.append(s)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user