mirror of
https://github.com/godotengine/godot.git
synced 2025-02-16 15:50:45 +00:00
Fix potentially unininitialized pointer write.
This commit is contained in:
parent
12124d2d44
commit
67177586d3
@ -57,9 +57,7 @@ class RWLockRead {
|
||||
|
||||
public:
|
||||
RWLockRead(const RWLock *p_lock) {
|
||||
if (p_lock) {
|
||||
lock = const_cast<RWLock *>(p_lock);
|
||||
}
|
||||
lock = const_cast<RWLock *>(p_lock);
|
||||
if (lock) lock->read_lock();
|
||||
}
|
||||
~RWLockRead() {
|
||||
|
Loading…
Reference in New Issue
Block a user