summaryrefslogtreecommitdiff
path: root/src/compress.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compress.c')
-rw-r--r--src/compress.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compress.c b/src/compress.c
index 4df5ef7..22b4c50 100644
--- a/src/compress.c
+++ b/src/compress.c
@@ -44,6 +44,8 @@ struct stream *stream_inflate(struct stream *s, size_t len,
int ret;
struct stream *new = stream_new(decompressed_len);
+ if (new == NULL)
+ return NULL;
do {
strm.avail_in = len;