summaryrefslogtreecommitdiffstats
path: root/lib/libz/infback.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libz/infback.c')
-rw-r--r--lib/libz/infback.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libz/infback.c b/lib/libz/infback.c
index 110b03b..262f97c7 100644
--- a/lib/libz/infback.c
+++ b/lib/libz/infback.c
@@ -434,6 +434,9 @@ void FAR *out_desc;
}
}
+ /* handle error breaks in while */
+ if (state->mode == BAD) break;
+
/* build code tables */
state->next = state->codes;
state->lencode = (code const FAR *)(state->next);
OpenPOWER on IntegriCloud