Skip to content

Commit 2d48d2d

Browse files
committed
clarify client_sdk freeze in sentry_init()
1 parent 5890e22 commit 2d48d2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sentry_core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ sentry_init(sentry_options_t *options)
163163
g_options = options;
164164

165165
// *after* setting the global options, trigger a scope and consent flush,
166-
// since at least crashpad needs that.
167-
// the only way to get a reference to the scope is by locking it, the macro
168-
// does all that at once, including invoking the backends scope flush hook
166+
// since at least crashpad needs that. At this point we also freeze the
167+
// `client_sdk` in the `scope` because some downstream SDKs want to override
168+
// it at runtime via the options interface.
169169
SENTRY_WITH_SCOPE_MUT (scope) {
170170
if (options->sdk_name) {
171171
sentry_value_t sdk_name

0 commit comments

Comments
 (0)