summaryrefslogtreecommitdiff
path: root/verify.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-11-16 21:40:28 +0000
committerjbj <devnull@localhost>1998-11-16 21:40:28 +0000
commit28c4ae83a312a54cbe0faa2827ca6a3f9106b4a9 (patch)
treeb73dd13f60ab5e3904f93cd76622c4f5f61ad6f1 /verify.c
parentbed2bf89c9cc52f655900413d32eb8a5bdcb810c (diff)
downloadlibrpm-tizen-28c4ae83a312a54cbe0faa2827ca6a3f9106b4a9.tar.gz
librpm-tizen-28c4ae83a312a54cbe0faa2827ca6a3f9106b4a9.tar.bz2
librpm-tizen-28c4ae83a312a54cbe0faa2827ca6a3f9106b4a9.zip
LCLINT pass 0.
CVS patchset: 2540 CVS date: 1998/11/16 21:40:28
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) */
}