From: ewt Date: Fri, 1 May 1998 19:33:36 +0000 (+0000) Subject: didn't handle packages w/ empty filelists X-Git-Tag: rpm-4.4-release~3655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2afff79ebcefd9d8b2030181ab83e3d73d3f94d6;p=platform%2Fupstream%2Frpm.git didn't handle packages w/ empty filelists CVS patchset: 2103 CVS date: 1998/05/01 19:33:36 --- diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 1184401..bc1e5dc 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -454,6 +454,7 @@ int rpmdbAdd(rpmdb db, Header dbentry) { if (!group) group = "Unknown"; + count = 0; headerGetEntry(dbentry, RPMTAG_FILENAMES, &type, (void **) &fileList, &count); headerGetEntry(dbentry, RPMTAG_PROVIDES, &type, (void **) &providesList,