From 89720d3c63bbd22cbccc80cdc92c2f2dd20193ba Mon Sep 17 00:00:00 2001 From: Lutz Bichler Date: Tue, 27 Oct 2020 10:02:03 +0100 Subject: capicxx-core-runtime 3.2.0 --- src/CommonAPI/IniFileReader.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/CommonAPI/IniFileReader.cpp') 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(']'); -- cgit v1.2.1