Ubuntu Pastebin

Paste from juliank at Thu, 24 Aug 2017 14:21:15 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
diff --git a/apt-pkg/contrib/configuration.cc b/apt-pkg/contrib/configuration.cc
index eb873bd..ddd0a19 100644
--- a/apt-pkg/contrib/configuration.cc
+++ b/apt-pkg/contrib/configuration.cc
@@ -105,7 +105,8 @@ static void checkFindConfigOptionTypeInternal(std::string name, ConfigType const
         known = apt_known_config.find(name.substr(0, rcolon) + ":*");
         if (known == apt_known_config.cend())
         {
-           auto const parts = StringSplit(name, "::");
+           std::string const sep = "::";
+           auto const parts = StringSplit(name, sep);
            size_t psize = parts.size();
            if (psize > 1)
            {
Download as text