mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1108709 - Don't chdir on Android r=glandium
This commit is contained in:
parent
2f3c21318a
commit
bdedcc0b2a
@ -209,8 +209,6 @@ report_mapping(char *name, void *base, uint32_t len, uint32_t offset)
|
||||
static mozglueresult
|
||||
loadGeckoLibs(const char *apkName)
|
||||
{
|
||||
chdir(getenv("GRE_HOME"));
|
||||
|
||||
uint64_t t0 = TimeStamp_Now();
|
||||
struct rusage usage1_thread, usage1;
|
||||
getrusage(RUSAGE_THREAD, &usage1_thread);
|
||||
@ -268,8 +266,6 @@ loadSQLiteLibs(const char *apkName)
|
||||
if (loadNSSLibs(apkName) != SUCCESS)
|
||||
return FAILURE;
|
||||
#else
|
||||
chdir(getenv("GRE_HOME"));
|
||||
|
||||
if (!lib_mapping) {
|
||||
lib_mapping = (struct mapping_info *)calloc(MAX_MAPPING_INFO, sizeof(*lib_mapping));
|
||||
}
|
||||
@ -295,8 +291,6 @@ loadNSSLibs(const char *apkName)
|
||||
if (nss_handle && nspr_handle && plc_handle)
|
||||
return SUCCESS;
|
||||
|
||||
chdir(getenv("GRE_HOME"));
|
||||
|
||||
if (!lib_mapping) {
|
||||
lib_mapping = (struct mapping_info *)calloc(MAX_MAPPING_INFO, sizeof(*lib_mapping));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user