Skip to content

Commit a302c21

Browse files
committed
Merge pull request #3066 from Diapolo/rem_global
make fCommandLine a local variable in AppInit()
2 parents 26002aa + 917ac1d commit a302c21

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

src/bitcoind.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ bool AppInit(int argc, char* argv[])
6969
}
7070

7171
// Command-line RPC
72+
bool fCommandLine = false;
7273
for (int i = 1; i < argc; i++)
7374
if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "bitcoin:"))
7475
fCommandLine = true;

src/util.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ bool fPrintToConsole = false;
7878
bool fPrintToDebugger = false;
7979
bool fDaemon = false;
8080
bool fServer = false;
81-
bool fCommandLine = false;
8281
string strMiscWarning;
8382
bool fNoListen = false;
8483
bool fLogTimestamps = false;

src/util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ extern bool fPrintToConsole;
145145
extern bool fPrintToDebugger;
146146
extern bool fDaemon;
147147
extern bool fServer;
148-
extern bool fCommandLine;
149148
extern std::string strMiscWarning;
150149
extern bool fNoListen;
151150
extern bool fLogTimestamps;

0 commit comments

Comments
 (0)