Add pb_decode_noinit and use it from pb_dec_submessage.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sun, 26 Aug 2012 06:56:11 +0000 (09:56 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sun, 26 Aug 2012 08:04:55 +0000 (11:04 +0300)
commit160f02e4d0f8f404492ffd4d7611ba4478190da2
treedc0548d7d3ca57af153627579164694deded3d26
parenta7a6cdad8885b48a648ad69c9c0a3f01e0707934
Add pb_decode_noinit and use it from pb_dec_submessage.

This avoids double initialization when decoding nested submessages.
Fixes an issue with submessage arrays that was present in previous
version of this patch.

Update issue 28
Status: FixedInGit
docs/reference.rst
pb_decode.c
pb_decode.h