Skip to content

Commit ff50b29

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Explicitly set default values for fields of struct JSRuntimeFlags (#54189)
Summary: Pull Request resolved: #54189 Explicitly set default values for fields of struct JSRuntimeFlags changelog: [internal] internal Reviewed By: cortinico Differential Revision: D84952242 fbshipit-source-id: 41de7eb791c9880c83573d670f4a777bf0a753d9
1 parent c3868e5 commit ff50b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/ReactCommon/react/runtime/ReactInstance.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ReactInstance final : private jsinspector_modern::InstanceTargetDelegate {
4040

4141
struct JSRuntimeFlags {
4242
bool isProfiling = false;
43-
const std::string runtimeDiagnosticFlags;
43+
const std::string runtimeDiagnosticFlags = {};
4444
};
4545

4646
void initializeRuntime(

0 commit comments

Comments
 (0)