summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-04-10 09:15:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-04-10 11:12:48 +0200
commitfe858f28a0d5db819f80a6086bfe41f181df40df (patch)
tree4146971a4400a854d0752e7907aa050c0b2358dd /setup_native
parentcb66be9e91c2ab178238b644b998d05145f5fddc (diff)
loplugin:empty
Change-Id: Ib52d0d4db0f50ba7551eadcb3db2920008596b59 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132761 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/source/win32/customactions/sellang/sellang.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup_native/source/win32/customactions/sellang/sellang.cxx b/setup_native/source/win32/customactions/sellang/sellang.cxx
index 594bd70bc77c..75f6fb50c9a4 100644
--- a/setup_native/source/win32/customactions/sellang/sellang.cxx
+++ b/setup_native/source/win32/customactions/sellang/sellang.cxx
@@ -49,7 +49,7 @@ static bool GetMsiPropA( MSIHANDLE hMSI, const char* pPropName, char** ppValue )
ZeroMemory( buff, nbytes );
MsiGetPropertyA( hMSI, pPropName, buff, &sz );
*ppValue = buff;
- return ( strlen(buff) > 0 );
+ return ( buff[0] != '\0' );
}
return false;
}