From f4253af367e95a59c5f68140c7b1ec0a45aa22e5 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 24 Nov 2024 21:19:46 +0500 Subject: [PATCH] Avoid assigning unused value Change-Id: Ic6c59500805a8710150f083ff089b2e1c4c36530 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177217 Reviewed-by: Mike Kaganski Tested-by: Jenkins --- lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx index 74761d739c54..1e527c8e8ada 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx @@ -241,8 +241,8 @@ bool LoadDictionary(HDInfo& rDict) #else OString sTmp(OU2ENC(dictpath, osl_getThreadTextEncoding())); #endif - HyphenDict *dict = nullptr; - if ((dict = hnj_hyphen_load(sTmp.getStr())) == nullptr) + HyphenDict* dict = hnj_hyphen_load(sTmp.getStr()); + if (!dict) { SAL_WARN( "lingucomponent",