From 1b12a8940bcf34d73fa531416ae95c84d3c92d80 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 17 Nov 2016 21:04:52 +1100 Subject: [PATCH] gah, wasn't quite compatible (nw) --- src/lib/util/xmlfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/util/xmlfile.cpp b/src/lib/util/xmlfile.cpp index 5c9096608bf..18d49926188 100644 --- a/src/lib/util/xmlfile.cpp +++ b/src/lib/util/xmlfile.cpp @@ -209,8 +209,8 @@ xml_data_node::xml_data_node(xml_data_node *parent, const char *name, const char : line(0) , m_next(nullptr) , m_first_child(nullptr) - , m_name(name) - , m_value(value) + , m_name(name ? name : "") + , m_value(value ? value : "") , m_parent(parent) , m_attributes() { @@ -237,7 +237,7 @@ xml_data_node::~xml_data_node() void xml_data_node::set_value(char const *value) { - m_value.assign(value); + m_value.assign(value ? value : ""); }