diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-10-07 21:16:13 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-10-07 21:16:35 +0300 |
commit | 5f66b618effe48b8a4ab295b067e379e49518346 (patch) | |
tree | e75fa4b1eddfc221628067e2d593f699ba4e1e44 /src/io_gunzip.c | |
parent | 90137499afdecdbcd977805786263b6f883680e7 (diff) | |
download | apk-tools-5f66b618effe48b8a4ab295b067e379e49518346.tar.gz apk-tools-5f66b618effe48b8a4ab295b067e379e49518346.tar.bz2 apk-tools-5f66b618effe48b8a4ab295b067e379e49518346.tar.xz apk-tools-5f66b618effe48b8a4ab295b067e379e49518346.zip |
various changes to make clang not give warnings
Diffstat (limited to 'src/io_gunzip.c')
-rw-r--r-- | src/io_gunzip.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |