diff --git a/repos/base/include/util/xml_node.h b/repos/base/include/util/xml_node.h index 171e4d10d7..69fbd3c8b8 100644 --- a/repos/base/include/util/xml_node.h +++ b/repos/base/include/util/xml_node.h @@ -1070,7 +1070,7 @@ class Genode::Xml_unquoted : Noncopyable template Xml_unquoted(String const &string) - : _content_ptr({ string.string(), string.length() - 1}) + : _content_ptr({ string.string(), string.length() ? string.length() - 1 : 0 }) { } void print(Output &out) const