mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Fixed null key/value bug, added tests
This commit is contained in:
@@ -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