Skip to content
Snippets Groups Projects
Commit a3769b22 authored by Timo Teräs's avatar Timo Teräs
Browse files

io: check inner stream existance before creating gunzip stream

parent fb911432
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,9 @@ struct apk_istream *apk_bstream_gunzip(struct apk_bstream *bs)
{
struct apk_gzip_istream *gis;
if (bs == NULL)
return NULL;
gis = malloc(sizeof(struct apk_gzip_istream));
if (gis == NULL)
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment