diff options
Diffstat (limited to 'src/sysinfo.cpp')
-rw-r--r-- | src/sysinfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp index 2f0d5dc..6789a3c 100644 --- a/src/sysinfo.cpp +++ b/src/sysinfo.cpp @@ -202,7 +202,8 @@ namespace { xmlXPathFreeContext(context); xmlFreeDoc(document); - this->mate_version = values[0] + '.' + values[1] + '.' + values[2]; + if (!values[0].empty() && !values[1].empty() && !values[2].empty()) + this->mate_version = values[0] + '.' + values[1] + '.' + values[2]; } }; |