mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Storage::SetEntryFlags(): Fix deadlock, check for empty name.
This commit is contained in:
@@ -72,7 +72,7 @@ void Storage::SetEntryTypeValue(StringRef name, std::shared_ptr<Value> value) {
|
||||
}
|
||||
|
||||
void Storage::SetEntryFlags(StringRef name, unsigned int flags) {
|
||||
std::lock_guard<std::mutex> lock(m_mutex);
|
||||
if (name.empty()) return;
|
||||
auto entry = FindEntry(name);
|
||||
if (!entry) return;
|
||||
if (entry->flags() != flags) {
|
||||
|
||||
Reference in New Issue
Block a user