Browse Source

initialize PinVers to a nullptr

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

Git-Dch: Ignore
debian/1.8.y
David Kalnischkies 7 years ago
parent
commit
50bac72818
  1. 3
      apt-pkg/policy.cc

3
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;

Loading…
Cancel
Save