]> git.saurik.com Git - apt.git/commitdiff
initialize PinVers to a nullptr
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 10 Aug 2015 15:47:49 +0000 (17:47 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 10 Aug 2015 15:47:49 +0000 (17:47 +0200)
This makes test-bug-254770-segfault-if-cache-not-buildable happy.

Git-Dch: Ignore

apt-pkg/policy.cc

index 170da7c6383e26e193604d8c3ec81aefbabefeba..47b0f47fbf50958e207c008513a6a521a75b1223 100644 (file)
@@ -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;