also set upstream to error state

This commit is contained in:
leitner 2020-11-01 20:15:32 +00:00
parent 235dfb18cd
commit 51869a80f8

View File

@ -3,4 +3,6 @@
void bs_seterrorstate(struct bytestream* b) {
b->cur = 1;
b->max = 0;
if (b->type == BSTREAM)
bs_seterrorstate(b->u.bs);
}