From 9cc002939afc0d2283fd2f5e7d6e7434af5d10ff Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 26 Oct 2020 13:54:26 +0100 Subject: pkgnames: Correctly set the default for AllNames to false We passed "false" instead of false, and that apparently got cast to bool, because it's a non-null pointer. LP: #1876495 --- cmdline/apt-cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmdline') diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index 23ab7e47f..b40ff6efa 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -980,7 +980,7 @@ static bool ShowPkgNames(CommandLine &CmdL) if (unlikely(CacheFile.BuildCaches(NULL, false) == false)) return false; pkgCache::GrpIterator I = CacheFile.GetPkgCache()->GrpBegin(); - bool const All = _config->FindB("APT::Cache::AllNames","false"); + bool const All = _config->FindB("APT::Cache::AllNames", false); if (CmdL.FileList[1] != 0) { -- cgit v1.2.3