зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1615130 - Fix uninitialized data. r=padenot
Values are set to 0 by default rather than uninitialized. It is useful when JSContext is null. Differential Revision: https://phabricator.services.mozilla.com/D79986
This commit is contained in:
Родитель
8243db7082
Коммит
5d8eb750cd
|
@ -113,7 +113,7 @@ void WebAudioUtils::LogToDeveloperConsole(uint64_t aWindowID,
|
|||
}
|
||||
|
||||
nsAutoString spec;
|
||||
uint32_t aLineNumber, aColumnNumber;
|
||||
uint32_t aLineNumber = 0, aColumnNumber = 0;
|
||||
JSContext* cx = nsContentUtils::GetCurrentJSContext();
|
||||
if (cx) {
|
||||
nsJSUtils::GetCallingLocation(cx, spec, &aLineNumber, &aColumnNumber);
|
||||
|
|
Загрузка…
Ссылка в новой задаче