mirror of
https://github.com/loot/yaml-cpp.git
synced 2026-07-27 14:13:42 -07:00
Fixed null key/value bug, added tests
This commit is contained in:
+5
-2
@@ -243,8 +243,11 @@ namespace YAML
|
||||
|
||||
bool Node::GetScalar(std::string& s) const
|
||||
{
|
||||
if(!m_pContent)
|
||||
return false;
|
||||
if(!m_pContent) {
|
||||
s = "~";
|
||||
return true;
|
||||
}
|
||||
|
||||
return m_pContent->GetScalar(s);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user