leethomason/tinyxml2 — pull request #243 by JayXon (2014-12-13 01:21:39+00:00)
Title: Simplify node logic

The only effect of setting p to 0 here is to break the loop, using break is much simpler.
As for line 858, there is no point to set node to 0 and then break the loop right after.