Skip to content

Commit

Permalink
Merge pull request #1 from glcoder/master
Browse files Browse the repository at this point in the history
Fixed NPE in jit_init_hook
  • Loading branch information
ghorsington committed Mar 5, 2021
2 parents b057cc5 + 26e556b commit 06e9790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doorstop.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void doorstop_init_mono_functions(void *handle)
void *jit_init_hook(const char *root_domain_name, const char *runtime_version)
{
char *override = getenv("DOORSTOP_CORLIB_OVERRIDE_PATH");
DIR *override_dir = opendir(override);
DIR *override_dir = override ? opendir(override) : NULL;
char *assembly_dir = r_mono_assembly_getrootdir();
if (override && override_dir) {
closedir(override_dir);
Expand Down

1 comment on commit 06e9790

@AevumTacet
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance to get a fix for the ARMx86_84 with Box emulator??

Please sign in to comment.