summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rw-r--r--lib/dpkg/fsys-hash.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index a3ab57e77..227839fc8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -189,6 +189,7 @@ dpkg (1.19.1) UNRELEASED; urgency=medium
- libdpkg: Factor out package files handling into its own module.
- libdpkg: Switch to a new tiny struct to track file on-disk identity.
This should reduce the run-time memory used.
+ - libdpkg: Reset nfiles in files_db_reset().
* Build system:
- Set distribution tarball format to ustar, instead of default v7 format.
- Mark PO4A and POD2MAN as precious variables.
diff --git a/lib/dpkg/fsys-hash.c b/lib/dpkg/fsys-hash.c
index 15d9669b4..002528c6c 100644
--- a/lib/dpkg/fsys-hash.c
+++ b/lib/dpkg/fsys-hash.c
@@ -63,6 +63,8 @@ files_db_reset(void)
for (i = 0; i < BINS; i++)
bins[i] = NULL;
+
+ nfiles = 0;
}
int