Bladeren bron

initialize PinVers to a nullptr

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

Git-Dch: Ignore
David Kalnischkies 11 jaren geleden
bovenliggende
commit
50bac72818
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  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
 /* Set the defaults for operation. The default mode with no loaded policy
    file matches the V0 policy engine. */
    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)
    if (Owner == 0)
       return;
       return;