summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/configfile.cc8
1 files changed, 3 insertions, 5 deletions
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();
}