summaryrefslogtreecommitdiff
path: root/verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'verify.c')
-rw-r--r--verify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/verify.c b/verify.c
index 1f798d2f0..a2405c0fe 100644
--- a/verify.c
+++ b/verify.c
@@ -132,7 +132,7 @@ static int verifyMatches(char * prefix, rpmdb db, dbiIndexSet matches,
matches.recs[i].recOffset);
h = rpmdbGetRecord(db, matches.recs[i].recOffset);
- if (!h) {
+ if (h == NULL) {
fprintf(stderr, _("error: could not read database record\n"));
ec = 1;
} else {
@@ -172,7 +172,7 @@ int doVerify(char * prefix, enum verifysources source, char ** argv,
offset != 0;
offset = rpmdbNextRecNum(db, offset)) {
h = rpmdbGetRecord(db, offset);
- if (!h) {
+ if (h == NULL) {
fprintf(stderr, _("could not read database record!\n"));
return 1; /* XXX was exit(1) */
}