summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-08-10 17:47:49 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-08-10 17:47:49 +0200
commit50bac72818c722ea4d3490fd1d2e91685265c51d (patch)
tree351a37ff22b5f88a0d810cb07c048367e188ed62 /apt-pkg
parent5f4495e342e94a75b17ceed2fa05d689f050df7b (diff)
initialize PinVers to a nullptr
This makes test-bug-254770-segfault-if-cache-not-buildable happy. Git-Dch: Ignore
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/policy.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc
index 170da7c63..47b0f47fb 100644
--- a/apt-pkg/policy.cc
+++ b/apt-pkg/policy.cc
@@ -45,7 +45,8 @@ using namespace std;
// ---------------------------------------------------------------------
/* Set the defaults for operation. The default mode with no loaded policy
file matches the V0 policy engine. */
-pkgPolicy::pkgPolicy(pkgCache *Owner) : Pins(0), PFPriority(0), Cache(Owner), d(NULL)
+pkgPolicy::pkgPolicy(pkgCache *Owner) : Pins(nullptr), VerPins(nullptr),
+ PFPriority(nullptr), Cache(Owner), d(NULL)
{
if (Owner == 0)
return;