diff options
Diffstat (limited to 'pb_decode.c')
-rw-r--r-- | pb_decode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pb_decode.c b/pb_decode.c index 6b6066e8..96e0c43b 100644 --- a/pb_decode.c +++ b/pb_decode.c @@ -225,7 +225,10 @@ 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; + +#ifdef PB_NO_ERRMSG stream->errmsg = substream->errmsg; +#endif } /* Iterator for pb_field_t list */ |