setup_native/source/win32/customactions/sellang/sellang.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fe858f28a0d5db819f80a6086bfe41f181df40df
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Sun Apr 10 09:15:27 2022 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Sun Apr 10 11:12:48 2022 +0200

    loplugin:empty
    
    Change-Id: Ib52d0d4db0f50ba7551eadcb3db2920008596b59
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132761
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

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;
 }

Reply via email to