summaryrefslogtreecommitdiff
path: root/src/filesdb.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2009-12-14 18:54:37 +0100
committerGuillem Jover <guillem@debian.org>2009-12-22 17:00:58 +0100
commitbe33d6deea574d4b42ac97954192097376083915 (patch)
tree8ab6fa8702c45cf16873759e4b074d6a9f4bf5fb /src/filesdb.c
parent5f5ef320041be2ab0e32768825b899629c59b2f9 (diff)
downloaddpkg-be33d6deea574d4b42ac97954192097376083915.tar.gz
Move color member from struct pkginfo to struct perpackagestate
The only user of this field is in the dependency cycle detection, only found under src/. So move it there where it belongs.
Diffstat (limited to 'src/filesdb.c')
-rw-r--r--src/filesdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filesdb.c b/src/filesdb.c
index 848cd14d0..e1dc73889 100644
--- a/src/filesdb.c
+++ b/src/filesdb.c
@@ -56,6 +56,7 @@ ensure_package_clientdata(struct pkginfo *pkg)
return;
pkg->clientdata = nfmalloc(sizeof(struct perpackagestate));
pkg->clientdata->istobe = itb_normal;
+ pkg->clientdata->color = white;
pkg->clientdata->fileslistvalid = 0;
pkg->clientdata->files = NULL;
pkg->clientdata->trigprocdeferred = NULL;