mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Zero out VirtualFileSystem::s_the in initializeGlobals().
This catches attempts to access the vfs before it's been constructed.
This commit is contained in:
parent
e4afa2a041
commit
ba185e3eba
Notes:
sideshowbarker
2024-07-19 18:45:33 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ba185e3eba1
1 changed files with 6 additions and 5 deletions
|
@ -7,11 +7,6 @@
|
|||
|
||||
//#define VFS_DEBUG
|
||||
|
||||
void VirtualFileSystem::initializeGlobals()
|
||||
{
|
||||
FileSystem::initializeGlobals();
|
||||
}
|
||||
|
||||
static dword encodedDevice(unsigned major, unsigned minor)
|
||||
{
|
||||
return (minor & 0xff) | (major << 8) | ((minor & ~0xff) << 12);
|
||||
|
@ -25,6 +20,12 @@ VirtualFileSystem& VirtualFileSystem::the()
|
|||
return *s_the;
|
||||
}
|
||||
|
||||
void VirtualFileSystem::initializeGlobals()
|
||||
{
|
||||
s_the = nullptr;
|
||||
FileSystem::initializeGlobals();
|
||||
}
|
||||
|
||||
VirtualFileSystem::VirtualFileSystem()
|
||||
{
|
||||
#ifdef VFS_DEBUG
|
||||
|
|
Loading…
Reference in a new issue