From 9c7897b8d231e6b34b0dd18c528a95e848d45f71 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Mon, 30 Jan 2017 23:55:31 -0800 Subject: Remove null pointer test from first_element_by_path All other functions treat null pointer inputs as invalid; now this function does as well. --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3