summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-06-29 23:16:00 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-06-29 23:16:00 +0200
commit1925ea3d0cd6579a4034acb7308e532d025319c7 (patch)
tree01ae992a818e1d8a3d0deaef9e778b9a96944abb /apt-pkg/policy.cc
parent5b7d1ee67575e311871fb73be421ea7fd2f6fd73 (diff)
Defaults is a vector of Pin not of PkgPin
Diffstat (limited to 'apt-pkg/policy.cc')
-rw-r--r--apt-pkg/policy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc
index 291d83c67..827c9145c 100644
--- a/apt-pkg/policy.cc
+++ b/apt-pkg/policy.cc
@@ -210,7 +210,7 @@ void pkgPolicy::CreatePin(pkgVersionMatch::MatchType Type,string Name,
{
if (Name.empty() == true)
{
- Pin *P = &*Defaults.insert(Defaults.end(),PkgPin());
+ Pin *P = &*Defaults.insert(Defaults.end(),Pin());
P->Type = Type;
P->Priority = Priority;
P->Data = Data;