summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-01-30 23:55:31 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-01-30 23:55:31 -0800
commit9c7897b8d231e6b34b0dd18c528a95e848d45f71 (patch)
tree5223c42796de4b7c1f6b8facc19c7ea5732f9bdc
parenta1bc15c8d525ff2cac165cc0e5d08b272d79fc33 (diff)
Remove null pointer test from first_element_by_path
All other functions treat null pointer inputs as invalid; now this function does as well.
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 79614cb..8f93819 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -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)
{