Fix compilation error with generated initializers for repeated pointer fields

This commit is contained in:
Petteri Aimonen
2014-09-07 19:49:00 +03:00
parent d0299d87ec
commit cdbf51db08

View File

@@ -596,6 +596,8 @@ class Message:
else:
parts.append(field.get_initializer(null_init))
elif field.allocation == 'POINTER':
if field.rules == 'REPEATED':
parts.append('0')
parts.append('NULL')
elif field.allocation == 'CALLBACK':
if field.pbtype == 'EXTENSION':