Remove null pointer test from first_element_by_path

All other functions treat null pointer inputs as invalid; now this
function does as well.
This commit is contained in:
Arseny Kapoulkine 2017-01-30 23:55:31 -08:00
parent a1bc15c8d5
commit 9c7897b8d2

View file

@ -6132,7 +6132,7 @@ namespace pugi
{
xml_node found = *this; // Current search context.
if (!_root || !path_ || !path_[0]) return found;
if (!_root || !path_[0]) return found;
if (path_[0] == delimiter)
{