diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-08-10 17:47:49 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-08-10 17:47:49 +0200 |
commit | 50bac72818c722ea4d3490fd1d2e91685265c51d (patch) | |
tree | 351a37ff22b5f88a0d810cb07c048367e188ed62 /apt-pkg/policy.cc | |
parent | 5f4495e342e94a75b17ceed2fa05d689f050df7b (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/policy.cc')
-rw-r--r-- | apt-pkg/policy.cc | 3 |
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; |