LibWeb: Initialize IDBTransaction::m_state correctly
The spec says this should be initialized as "active", so let's do that. Found by UBSAN when using 16 KiB GC heap blocks on Linux.
This commit is contained in:
parent
6975c31b4d
commit
f58d4dd324
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ private:
|
|||
Bindings::IDBTransactionDurability m_durability { Bindings::IDBTransactionDurability::Default };
|
||||
|
||||
// A transaction has a state
|
||||
TransactionState m_state;
|
||||
TransactionState m_state { TransactionState::Active };
|
||||
|
||||
// A transaction has a error which is set if the transaction is aborted.
|
||||
GC::Ptr<WebIDL::DOMException> m_error;
|
||||
|
|
|
|||
Loading…
Reference in a new issue