Skip to content

Commit 694dfc2

Browse files
authored
[Improvement] (config): Do not unset env MG_DIR_PATH.
1 parent d0e6a2f commit 694dfc2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

MobileGlues-cpp/config/config.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ int check_path() {
4242
char* var = getenv("MG_DIR_PATH");
4343
is_custom_mg_dir = var ? true : false;
4444
mg_directory_path = var ? strdup(var) : DEFAULT_MG_DIRECTORY_PATH;
45-
unsetenv("MG_DIR_PATH");
4645
}
4746
config_file_path = concatenate(mg_directory_path, "/config.json");
4847
log_file_path = concatenate(mg_directory_path, "/latest.log");

0 commit comments

Comments
 (0)