diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-25 22:31:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-25 23:31:02 +0300 |
commit | 7ee1d89a656c05b62fa3104b59504afed0037b69 (patch) | |
tree | 7a20e371ba1035fc43135f069407b51d81d15527 /src/utils/xml.cpp | |
parent | d49a520d19f28c613c68b574686b182a9c0621be (diff) | |
download | plus-7ee1d89a656c05b62fa3104b59504afed0037b69.tar.gz plus-7ee1d89a656c05b62fa3104b59504afed0037b69.tar.bz2 plus-7ee1d89a656c05b62fa3104b59504afed0037b69.tar.xz plus-7ee1d89a656c05b62fa3104b59504afed0037b69.zip |
Add missing checks into db directory.
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r-- | src/utils/xml.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index f2cbdb384..cb0cc56b8 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -245,6 +245,8 @@ namespace XML XmlNodePtr findFirstChildByName(const XmlNodePtrConst parent, const char *const name) { + if (!parent) + return nullptr; for_each_xml_child_node(child, parent) { if (xmlNameEqual(child, name)) |