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:
parent
a1bc15c8d5
commit
9c7897b8d2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue