Imported Upstream version 15.0.0
[platform/upstream/libzypp.git] / zypp / parser / IniParser.cc
index 9958f66..cdead1e 100644 (file)
@@ -99,7 +99,7 @@ void IniParser::parse( const InputStream & input_r, const ProgressData::Receiver
 
     if (trimmed[0] == '[')
     {
-      std::string::size_type pos = trimmed.rfind(']');
+      std::string::size_type pos = trimmed.find(']');
       if ( pos != std::string::npos )
       {
        std::string section = trimmed.substr(1, pos-1);