From b91ffbf1e3f971bb46df26e965823d98e25ab6aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Fri, 10 Apr 2020 23:30:06 +0200 Subject: Fix bug of wrongly set filename in configfile.cc --- src/configfile.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/configfile.cc b/src/configfile.cc index 436d090..18934aa 100644 --- a/src/configfile.cc +++ b/src/configfile.cc @@ -188,12 +188,10 @@ bool ConfigFile::open(std::ios_base::openmode mode) current_file.close(); } - std::string filename = getConfigPath(); - filename += sep; - filename += filename; + std::string const full_filename = getConfigPath() + sep + filename; - DEBUG(configfile, "Opening config file '%s'\n", filename.c_str()); - current_file.open(filename, mode); + DEBUG(configfile, "Opening config file '%s'\n", full_filename.c_str()); + current_file.open(full_filename, mode); return current_file.is_open(); } -- cgit v1.2.3