Bug 1808379 - don't return reference to temporary object r=yjuglaret

Differential Revision: https://phabricator.services.mozilla.com/D165995
This commit is contained in:
Greg Stoll 2023-01-05 12:40:28 +00:00
Родитель 8bda354b80
Коммит d86f570a9a
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -468,7 +468,8 @@ static const Maybe<Vector<const wchar_t*>>& GetPrespawnCigExceptionModules() {
return sDependentModules;
#else
return Nothing();
static const Maybe<Vector<const wchar_t*>> sNothing = Nothing();
return sNothing;
#endif
}