diff --git a/ecal/core/src/config/ecal_cmd_parser.cpp b/ecal/core/src/config/ecal_cmd_parser.cpp index a93703b38a..750173c934 100644 --- a/ecal/core/src/config/ecal_cmd_parser.cpp +++ b/ecal/core/src/config/ecal_cmd_parser.cpp @@ -132,7 +132,7 @@ namespace return ecal_ini_status.IsOk() && (ecal_ini_status.GetType() == EcalUtils::Filesystem::Type::RegularFile); } - std::string& checkForValidConfigFilePath(const std::string& config_file_) + std::string checkForValidConfigFilePath(const std::string& config_file_) { // differences to ecal_config_reader implementation are: // 1. does not use the default ini file name, instead uses the specified file