didn't handle packages w/ empty filelists
authorewt <devnull@localhost>
Fri, 1 May 1998 19:33:36 +0000 (19:33 +0000)
committerewt <devnull@localhost>
Fri, 1 May 1998 19:33:36 +0000 (19:33 +0000)
CVS patchset: 2103
CVS date: 1998/05/01 19:33:36

lib/rpmdb.c

index 1184401..bc1e5dc 100644 (file)
@@ -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,