From d7f3b1af21daa93165b3726fee059a55b7727280 Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Fri, 11 Jun 2021 15:37:30 -0400 Subject: [PATCH] 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 --- src/qt/bitcoin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 65bba1dd103..442c813a5a6 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;