mirror of https://github.com/sysown/proxysql
parent
d2eb34e109
commit
08b15e7239
@ -0,0 +1,18 @@
|
||||
--- cpp-dotenv.old/src/dotenv.cpp 2023-06-12 10:09:44.621343972 +0000
|
||||
+++ cpp-dotenv.new/src/dotenv.cpp 2020-08-09 16:19:56.000000000 +0000
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
dotenv::dotenv& dotenv::dotenv::load_dotenv(const string& dotenv_path, const bool overwrite, const bool interpolate)
|
||||
{
|
||||
+ loaded = false;
|
||||
ifstream env_file;
|
||||
env_file.open(dotenv_path);
|
||||
|
||||
@@ -21,6 +22,7 @@
|
||||
Parser parser;
|
||||
parser.parse(env_file, overwrite, interpolate);
|
||||
env_file.close();
|
||||
+ loaded = true;
|
||||
}
|
||||
|
||||
return *this;
|
||||
@ -0,0 +1,10 @@
|
||||
--- cpp-dotenv.old/include/dotenv.h 2023-06-12 10:11:58.748360147 +0000
|
||||
+++ cpp-dotenv.new/include/dotenv.h 2020-08-09 16:19:56.000000000 +0000
|
||||
@@ -28,6 +28,7 @@
|
||||
void operator=(const dotenv&) = delete;
|
||||
|
||||
static dotenv& instance();
|
||||
+ bool loaded = false;
|
||||
|
||||
private:
|
||||
|
||||
Loading…
Reference in new issue