This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ae6a3ddd2a774ee1cedc5ee0c87ab8c66ae5f786 commit ae6a3ddd2a774ee1cedc5ee0c87ab8c66ae5f786 Author: Guillem Jover <[email protected]> AuthorDate: Fri Aug 24 20:51:09 2018 +0200 libdpkg: Reset nfiles in files_db_reset() --- debian/changelog | 1 + lib/dpkg/fsys-hash.c | 2 ++ 2 files changed, 3 insertions(+) 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 -- Dpkg.Org's dpkg

