summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pb_decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pb_decode.c b/pb_decode.c
index c9652afb..6b6066e8 100644
--- a/pb_decode.c
+++ b/pb_decode.c
@@ -225,6 +225,7 @@ bool checkreturn pb_make_string_substream(pb_istream_t *stream, pb_istream_t *su
void pb_close_string_substream(pb_istream_t *stream, pb_istream_t *substream)
{
stream->state = substream->state;
+ stream->errmsg = substream->errmsg;
}
/* Iterator for pb_field_t list */