Fixed null key/value bug, added tests

This commit is contained in:
jbeder
2009-07-30 06:49:09 +00:00
parent 49265fa12b
commit cb2b5783fa
8 changed files with 87 additions and 16 deletions

View File

@@ -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);
}