summaryrefslogtreecommitdiff
path: root/build/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/pack.c')
-rw-r--r--build/pack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/pack.c b/build/pack.c
index b9c8710fe..ef6dcb20b 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -218,7 +218,7 @@ int readRPM(const char *fileName, Spec *specp, struct rpmlead *lead, Header *sig
default:
rpmError(RPMERR_BADMAGIC, _("readRPM: reading header from %s\n"), fileName);
return RPMERR_BADMAGIC;
- break;
+ /*@notreached@*/ break;
}
if (specp)
@@ -438,6 +438,7 @@ static int cpio_gzip(FD_t fdo, CSA_t *csa)
}
gzdClose(cfd->cpioGzFd);
+ cfd->cpioGzFd = NULL;
if (failedFile)
xfree(failedFile);