Skip to content

Commit

Permalink
fix(ndk): remove any possibility of the `bsg_global_env->handling_cra…
Browse files Browse the repository at this point in the history
…sh` CAS succeeding spuriously
  • Loading branch information
lemnik committed Jan 8, 2024
1 parent ba43ff7 commit c4723b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bugsnag-plugin-android-ndk/src/main/jni/bugsnag_ndk.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool bsg_run_on_error() {
}

bool bsg_begin_handling_crash() {
static bool expected = false;
bool expected = false;
return atomic_compare_exchange_strong(&bsg_global_env->handling_crash,
&expected, true);
}
Expand Down

0 comments on commit c4723b2

Please sign in to comment.