Fixed little bug in parser commit

This commit is contained in:
jbeder
2009-10-19 22:42:30 +00:00
parent afc7c1088d
commit ae937a31d2

View File

@@ -37,6 +37,9 @@ namespace YAML
// . Throws a ParserException on error.
bool Parser::GetNextDocument(Node& document)
{
if(!m_pScanner.get())
return false;
// clear node
document.Clear();
@@ -130,6 +133,9 @@ namespace YAML
void Parser::PrintTokens(std::ostream& out)
{
if(!m_pScanner.get())
return;
while(1) {
if(m_pScanner->empty())
break;