From fe858f28a0d5db819f80a6086bfe41f181df40df Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 10 Apr 2022 09:15:27 +0200 Subject: [PATCH] loplugin:empty Change-Id: Ib52d0d4db0f50ba7551eadcb3db2920008596b59 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132761 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- setup_native/source/win32/customactions/sellang/sellang.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }