Просмотр исходного кода

initialize PinVers to a nullptr

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

Git-Dch: Ignore
David Kalnischkies лет назад: 11
Родитель
Сommit
50bac72818
1 измененных файлов с 2 добавлено и 1 удалено
  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;