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
This commit is contained in:
Russell Yanofsky 2021-06-11 15:37:30 -04:00
parent f66eceaecf
commit d7f3b1af21

View File

@ -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;