summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-10-26 13:54:26 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-10-26 14:33:55 +0100
commit9cc002939afc0d2283fd2f5e7d6e7434af5d10ff (patch)
treea51b37421903539d7d0b45fec8d2a52874fa751d /cmdline
parent5d4a9e4b595ec145cdbe30b4f43d6bcdf9f26b2e (diff)
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
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-cache.cc2
1 files changed, 1 insertions, 1 deletions
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)
{