summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index da6e97501..cb7adf8f1 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -801,6 +801,9 @@ void ConfigurationObject::writeToXML(const XmlTextWriterPtr writer)
void Configuration::write()
{
+ if (mConfigPath.empty())
+ return;
+
// Do not attempt to write to file that cannot be opened for writing
FILE *const testFile = fopen(mConfigPath.c_str(), "w");
if (!testFile)