mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Fixed assignment with an empty node (new API) - a segfault that only showed up in debuggable
This commit is contained in:
@@ -100,7 +100,9 @@ namespace YAML
|
||||
// assignment
|
||||
inline bool Node::is(const Node& rhs) const
|
||||
{
|
||||
return m_pNode ? m_pNode->is(*rhs.m_pNode) : false;
|
||||
if(!m_pNode || !rhs.m_pNode)
|
||||
return false;
|
||||
return m_pNode->is(*rhs.m_pNode);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
Reference in New Issue
Block a user