зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1349531 - Remove non-threadsafe static buffers, r=jandem
--HG-- extra : rebase_source : 40600e54a05697a3890093c26714d5cba8cc24d6
This commit is contained in:
Родитель
967defc952
Коммит
1fba5cf090
|
@ -123,7 +123,7 @@ ResolvePath(JSContext* cx, HandleString filenameStr, PathResolutionMode resolveM
|
|||
resolveMode = RootRelative;
|
||||
}
|
||||
|
||||
static char buffer[PATH_MAX+1];
|
||||
char buffer[PATH_MAX+1];
|
||||
if (resolveMode == ScriptRelative) {
|
||||
#ifdef XP_WIN
|
||||
// The docs say it can return EINVAL, but the compiler says it's void
|
||||
|
@ -232,7 +232,7 @@ FileAsTypedArray(JSContext* cx, JS::HandleString pathnameStr)
|
|||
UniqueChars
|
||||
GetCWD()
|
||||
{
|
||||
static char buffer[PATH_MAX + 1];
|
||||
char buffer[PATH_MAX + 1];
|
||||
const char* cwd = getcwd(buffer, PATH_MAX);
|
||||
if (!cwd)
|
||||
return UniqueChars();
|
||||
|
|
Загрузка…
Ссылка в новой задаче