summaryrefslogtreecommitdiff
path: root/cmdline/apt-helper.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2026-04-08 10:26:06 +0000
committerJulian Andres Klode <jak@debian.org>2026-04-08 10:26:06 +0000
commita6873075dcac5115706e001bc9640c8da0805e35 (patch)
treee5d3d569e51d24207eb0228615f5eedd37e08296 /cmdline/apt-helper.cc
parent04dcfd52355ca06143a8aaca4afd718a22fb0ded (diff)
parentaf5b9453a1908021cf75c348522c1a12eeb0dee4 (diff)
Merge branch 'str-to-chars' into 'main'
apt: funcs called with a string literal consisting of a single character See merge request apt-team/apt!563
Diffstat (limited to 'cmdline/apt-helper.cc')
-rw-r--r--cmdline/apt-helper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-helper.cc b/cmdline/apt-helper.cc
index 4404259d8..0700de0f6 100644
--- a/cmdline/apt-helper.cc
+++ b/cmdline/apt-helper.cc
@@ -117,7 +117,7 @@ static bool DoSrvLookup(CommandLine &CmdL) /*{{{*/
std::vector<SrvRec> srv_records;
std::string const name = CmdL.FileList[i];
c0out << "# Target\tPriority\tWeight\tPort # for " << name << std::endl;
- size_t const found = name.find(":");
+ size_t const found = name.find(':');
if (found != std::string::npos)
{
std::string const host = name.substr(0, found);