Skip to content

Commit

Permalink
wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Jun 22, 2021
1 parent 21ab155 commit b3fece8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modulefinder/sentry_modulefinder_apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,12 @@ sentry_get_modules_list(void)
}

sentry__mutex_lock(&g_mutex);
// now that is strange, having this declaration after the goto label gives a
// `expected expression` error.
sentry_value_t modules;

is_initialized:
sentry_value_t modules = g_modules;
modules = g_modules;
sentry_value_incref(modules);
sentry__mutex_unlock(&g_mutex);
return modules;
Expand Down

0 comments on commit b3fece8

Please sign in to comment.