io: check inner stream existance before creating gunzip stream
parent
fb911432cb
commit
a3769b2238
|
@ -71,6 +71,9 @@ struct apk_istream *apk_bstream_gunzip(struct apk_bstream *bs)
|
||||||
{
|
{
|
||||||
struct apk_gzip_istream *gis;
|
struct apk_gzip_istream *gis;
|
||||||
|
|
||||||
|
if (bs == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
gis = malloc(sizeof(struct apk_gzip_istream));
|
gis = malloc(sizeof(struct apk_gzip_istream));
|
||||||
if (gis == NULL)
|
if (gis == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue