diff options
author | Petteri Aimonen <jpa@github.mail.kapsi.fi> | 2017-01-12 20:00:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 20:00:28 +0200 |
commit | a3a7df33919f1f45067c4f6546dd31343d5bacb1 (patch) | |
tree | d6e71133408b998a9e86568b365421fd7b4e722d /pb_decode.h | |
parent | afdbca39edfaef58073f661d23300e1133c4e8af (diff) | |
parent | 31e09c6630c47d0aa1c1ec3909a936ba5674254f (diff) |
Merge pull request #230 from Tobba/nonempty-substring
Fix closing a non-empty substream resulting in an incorrect stream state
Diffstat (limited to 'pb_decode.h')
-rw-r--r-- | pb_decode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pb_decode.h b/pb_decode.h index e7eb209c..a426bdd7 100644 --- a/pb_decode.h +++ b/pb_decode.h @@ -144,7 +144,7 @@ bool pb_decode_fixed64(pb_istream_t *stream, void *dest); /* Make a limited-length substream for reading a PB_WT_STRING field. */ bool pb_make_string_substream(pb_istream_t *stream, pb_istream_t *substream); -void pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream); +bool pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream); #ifdef __cplusplus } /* extern "C" */ |