summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/misc/dp_version.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/deployment/misc/dp_version.cxx')
-rw-r--r--desktop/source/deployment/misc/dp_version.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/deployment/misc/dp_version.cxx b/desktop/source/deployment/misc/dp_version.cxx
index 04b835515e3d..9cebfce3c8b0 100644
--- a/desktop/source/deployment/misc/dp_version.cxx
+++ b/desktop/source/deployment/misc/dp_version.cxx
@@ -43,8 +43,8 @@ namespace dp_misc {
::rtl::OUString const & version1, ::rtl::OUString const & version2)
{
for (::sal_Int32 i1 = 0, i2 = 0; i1 >= 0 || i2 >= 0;) {
- ::rtl::OUString e1(getElement(version1, &i1));
- ::rtl::OUString e2(getElement(version2, &i2));
+ ::rtl::OUString e1(i1 >= 0 ? getElement(version1, &i1) : ::rtl::OUString());
+ ::rtl::OUString e2(i2 >= 0 ? getElement(version2, &i2) : ::rtl::OUString());
if (e1.getLength() < e2.getLength()) {
return ::dp_misc::LESS;
} else if (e1.getLength() > e2.getLength()) {