Skip to content

Commit

Permalink
check dummy null in setKey_
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Nov 10, 2024
1 parent 5adb16e commit f6b07a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ std::optional<std::string> Value::getKey() const {
}

void Value::setKey_(std::string_view key) {
if (CHECK_DUMMY_NULL) return;
return m_impl->setKey(std::string(key));
}

Expand Down

0 comments on commit f6b07a2

Please sign in to comment.