diff options
Diffstat (limited to 'src/CommonAPI/IniFileReader.cpp')
-rw-r--r-- | src/CommonAPI/IniFileReader.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CommonAPI/IniFileReader.cpp b/src/CommonAPI/IniFileReader.cpp index 94057e0..28b5013 100644 --- a/src/CommonAPI/IniFileReader.cpp +++ b/src/CommonAPI/IniFileReader.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// Copyright (C) 2015-2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -45,6 +45,11 @@ IniFileReader::load(const std::string &_path) { trim(line); + // Handle comments + std::size_t comment = line.find(';'); + if (comment == 0) + continue; + std::size_t start = line.find('['); if (start == 0) { std::size_t end = line.find(']'); |