summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 5e21ee5a..0b43418f 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -24,15 +24,17 @@
#include "configuration.h"
+#include <math.h>
#include <sstream>
#include <libxml/xmlwriter.h>
#include "configlistener.h"
#include "log.h"
-void Configuration::init(const std::string &filename):
- mConfigPath(filename)
+void Configuration::init(const std::string &filename)
{
+ mConfigPath = filename;
+
// Do not attempt to read config from non-existant file
FILE *testFile = fopen(filename.c_str(), "r");
if (!testFile) {