diff --git a/src/util.cpp b/src/util.cpp old mode 100644 new mode 100755 index 9a5fc587ac..dde07da313 --- a/src/util.cpp +++ b/src/util.cpp @@ -1106,8 +1106,13 @@ void ReadConfigFile(map& mapSettingsRet, map >& mapMultiSettingsRet) { boost::filesystem::ifstream streamConfig(GetConfigFile()); - if (!streamConfig.good()) - return; // No dash.conf file is OK + if (!streamConfig.good()){ + // Create empty dash.conf if it does not excist + FILE* configFile = fopen(GetConfigFile().string().c_str(), "a"); + if (configFile != NULL) + fclose(configFile); + return; // Nothing to read, so just return + } set setOptions; setOptions.insert("*");