Put previous commit (issue 52) inside #ifndef
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Wed, 16 Jan 2013 14:31:45 +0000 (16:31 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Wed, 16 Jan 2013 14:31:45 +0000 (16:31 +0200)
pb_decode.c

index 6b6066e..96e0c43 100644 (file)
@@ -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 */