Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ghorsington committed Feb 23, 2021
1 parent 3347a63 commit b057cc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 = dirent(override);
DIR *override_dir = opendir(override);
char *assembly_dir = r_mono_assembly_getrootdir();
if (override && override_dir) {
closedir(override_dir);
Expand All @@ -110,7 +110,7 @@ void *jit_init_hook(const char *root_domain_name, const char *runtime_version)
setenv("DOORSTOP_DLL_SEARCH_DIRS", search_path, 1);
free(search_path);
} else {
prtinf("No override (or failed to find), unsetting.");
printf("No override (or failed to find), unsetting.\n");
unsetenv("DOORSTOP_CORLIB_OVERRIDE_PATH");
setenv("DOORSTOP_DLL_SEARCH_DIRS", assembly_dir, 1);
}
Expand Down

0 comments on commit b057cc5

Please sign in to comment.