Fix bugs in proto3 mode encoding of submessages (#256)
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Fri, 14 Apr 2017 08:46:18 +0000 (11:46 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Fri, 14 Apr 2017 08:46:18 +0000 (11:46 +0300)
commit278ffb890e3d8722e4c7d824baaf221a1e375fc4
tree17cc07decab75fbd04f4d5f68d59d218034db84a
parente75d20b659aced782a0017244836e415164e2d0e
Fix bugs in proto3 mode encoding of submessages (#256)

pb_check_proto3_default_value() recurses into submessages,
but it didn't handle other than singular fields correctly.
This caused it to sometimes skip submessages with only
repeated or oneof fields present.
pb_encode.c