mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
* Config.cpp : don't try to parse config, if path is empty
This commit is contained in:
parent
e6e2f04a10
commit
022642f4d5
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,9 @@ namespace config {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParseConfig(const std::string& path) {
|
void ParseConfig(const std::string& path) {
|
||||||
|
if (path == "")
|
||||||
|
return;
|
||||||
|
|
||||||
std::ifstream config(path, std::ios::in);
|
std::ifstream config(path, std::ios::in);
|
||||||
|
|
||||||
if (!config.is_open()) {
|
if (!config.is_open()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue