Browse Source

initialize PinVers to a nullptr

This makes test-bug-254770-segfault-if-cache-not-buildable happy.

Git-Dch: Ignore
David Kalnischkies 11 years ago
parent
commit
50bac72818
1 changed files with 2 additions and 1 deletions
  1. 2 1
      apt-pkg/policy.cc

+ 2 - 1
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;