summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rpmfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmfi.c b/lib/rpmfi.c
index 427557b78..f30bfa1ca 100644
--- a/lib/rpmfi.c
+++ b/lib/rpmfi.c
@@ -1480,7 +1480,7 @@ static int rpmfilesPopulate(rpmfiles fi, Header h, rpmfiFlags flags)
uint8_t *t = fi->digests = xmalloc(rpmtdCount(&fdigests) * diglen);
while ((fdigest = rpmtdNextString(&fdigests))) {
- if (!(fdigest && *fdigest != '\0')) {
+ if (*fdigest == '\0') {
memset(t, 0, diglen);
t += diglen;
continue;