From 5f66b618effe48b8a4ab295b067e379e49518346 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 7 Oct 2020 21:16:13 +0300 Subject: various changes to make clang not give warnings --- src/io_gunzip.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/io_gunzip.c') diff --git a/src/io_gunzip.c b/src/io_gunzip.c index 41dc5e7..6faf74f 100644 --- a/src/io_gunzip.c +++ b/src/io_gunzip.c @@ -37,6 +37,7 @@ static int gzi_boundary_change(struct apk_gzip_istream *gis) { int r; + if (!gis->cb) return 0; r = gis->cb(gis->cbctx, gis->is.err ? APK_MPART_END : APK_MPART_BOUNDARY, gis->cbarg); if (r > 0) r = -ECANCELED; if (r != 0) gis->is.err = r; -- cgit v1.2.3-70-g09d2