aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2021-06-11 15:37:30 -0400
committerRussell Yanofsky <russ@yanofsky.org>2021-06-11 15:37:30 -0400
commitd7f3b1af21daa93165b3726fee059a55b7727280 (patch)
tree907ff9961f56e042348c03fb1b7197d9e18e3c6a /src
parentf66eceaecf464bfab5e19f3ca8fe680d8a6aa2e1 (diff)
Fix gui segfault caused by bitcoin/bitcoin#22216
Reported by Hennadii Stepanov https://github.com/bitcoin/bitcoin/pull/22216#issuecomment-859790682 Fixes bitcoin/bitcoin#22227
Diffstat (limited to 'src')
-rw-r--r--src/qt/bitcoin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 65bba1dd10..442c813a5a 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -490,6 +490,7 @@ int GuiMain(int argc, char* argv[])
/// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these
// Command-line options take precedence:
+ node_context.args = &gArgs;
SetupServerArgs(gArgs);
SetupUIArgs(gArgs);
std::string error;