From 31e09c6630c47d0aa1c1ec3909a936ba5674254f Mon Sep 17 00:00:00 2001 From: Tobba Date: Wed, 21 Dec 2016 21:02:53 +0100 Subject: Fix closing a non-empty substream resulting in an incorrect stream state --- pb_decode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pb_decode.h') 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" */ -- cgit 1.2.3-korg