]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/configuration.cc
make setup in travis.yml a bit more verbose
[apt.git] / apt-pkg / contrib / configuration.cc
index 4de17e3e1933ee8966403c8ff1ac65f245f91814..376617401fb995b98d7e59308104d3ef8fdb73c9 100644 (file)
@@ -811,7 +811,7 @@ bool ReadConfigFile(Configuration &Conf,const string &FName,bool const &AsSectio
            // Go down a level
            if (TermChar == '{')
            {
-              if (StackPos <= 100)
+              if (StackPos < sizeof(Stack)/sizeof(std::string))
                  Stack[StackPos++] = ParentTag;
               
               /* Make sectional tags incorperate the section into the
@@ -958,7 +958,7 @@ Configuration::MatchAgainstConfig::MatchAgainstConfig(char const * Config)
         continue;
       }
    }
-   if (strings.size() == 0)
+   if (strings.empty() == true)
       patterns.push_back(NULL);
 }
                                                                        /*}}}*/