fixed poteotential -validate crash with invalid softwarelist XML (nw)

This commit is contained in:
Oliver Stöneberg 2014-11-26 09:02:27 +01:00
parent cd0c9e1f28
commit 98aedadd72

View File

@ -196,7 +196,10 @@ software_info::software_info(software_list_device &list, const char *name, const
m_list(list),
m_supported(SOFTWARE_SUPPORTED_YES),
m_shortname(name),
m_parentname(parent)
m_longname(NULL),
m_parentname(parent),
m_year(NULL),
m_publisher(NULL)
{
// ensure strings we are passed are in the string pool
assert(list.string_pool_contains(name));