diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-04-05 11:11:05 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-04-05 11:11:05 +0300 |
commit | e5b855fec5d2977971f96d817728c7a3ee8077b2 (patch) | |
tree | 33dbf33ea17c072d4db878ee043d2244f2ab638c /pb_decode.c | |
parent | 70dee34da6578ab76dbf00009357d679e154e04b (diff) |
Add a 'found' field to pb_extension_t.
Update issue 112
Status: FixedInGit
Diffstat (limited to 'pb_decode.c')
-rw-r--r-- | pb_decode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pb_decode.c b/pb_decode.c index d8ac9ee2..9a48c60f 100644 --- a/pb_decode.c +++ b/pb_decode.c @@ -670,7 +670,6 @@ static bool checkreturn default_extension_decoder(pb_istream_t *stream, { const pb_field_t *field = (const pb_field_t*)extension->type->arg; pb_field_iterator_t iter; - bool dummy; if (field->tag != tag) return true; @@ -681,7 +680,7 @@ static bool checkreturn default_extension_decoder(pb_istream_t *stream, iter.required_field_index = 0; iter.dest_struct = extension->dest; iter.pData = extension->dest; - iter.pSize = &dummy; + iter.pSize = &extension->found; return decode_field(stream, wire_type, &iter); } |