mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-02 12:44:26 +01:00
tools/generate-wire.py: don't avoice tal_count() on NULL.
It actually works fine with recent ccan/tal (returning 0). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -346,7 +346,7 @@ class Message(object):
|
||||
field_decls = []
|
||||
for f in self.fields:
|
||||
if f.is_len_var:
|
||||
field_decls.append('\t{0} {1} = {2} ? tal_count({2}) : 0;'.format(
|
||||
field_decls.append('\t{0} {1} = tal_count({2});'.format(
|
||||
f.fieldtype.name, f.name, f.lenvar_for.name
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user