The following commit has been merged in the master branch:
commit ab44807b7a3945982894956155b70f591afebf01
Author: Raphaƫl Hertzog <[email protected]>
Date: Sat Nov 26 10:03:44 2011 +0100
dpkg: Initialize all clientdata members in ensure_package_clientdata()
Although all users of replacingfilesandsaid are previously calling
clear_istobes() to make sure it's initialized, doing so when allocating
clientdata is safer from an API point of view.
Signed-off-by: Guillem Jover <[email protected]>
diff --git a/src/filesdb.c b/src/filesdb.c
index f5cd1e8..0985d07 100644
--- a/src/filesdb.c
+++ b/src/filesdb.c
@@ -162,6 +162,7 @@ ensure_package_clientdata(struct pkginfo *pkg)
pkg->clientdata->color = white;
pkg->clientdata->fileslistvalid = false;
pkg->clientdata->files = NULL;
+ pkg->clientdata->replacingfilesandsaid = 0;
pkg->clientdata->listfile_phys_offs = 0;
pkg->clientdata->trigprocdeferred = NULL;
}
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]