Fixed null key/value bug, added tests

This commit is contained in:
Jesse Beder
2009-07-30 06:49:09 +00:00
parent 382f1ba3c7
commit 7a89920441
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);
}