summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/type.cpp b/type.cpp
index e6e348e5..fc90faf5 100644
--- a/type.cpp
+++ b/type.cpp
@@ -217,6 +217,8 @@ size_t NameList::size() const
size_t NameList::StringSize() const
{
+ if (m_name.size() == 0)
+ return 0;
size_t size = 0;
for (auto& name : m_name)
size += name.size() + m_join.size();