summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-01-16 16:28:51 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-01-16 16:28:51 +0200
commit88eba4bc27908659c6c8d203b5f16220a3736fb2 (patch)
treece19173fe4f018276310e4001e67621eb3bdae25
parentd32d3226580baf52f60fb7dee3921d8cc9aab67c (diff)
Fix bug with error messages.
Update issue 52 Status: FixedInGit
-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 */