Avoid assigning unused value

Change-Id: Ic6c59500805a8710150f083ff089b2e1c4c36530
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177217
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Mike Kaganski 2024-11-24 21:19:46 +05:00
parent 737c4e624f
commit f4253af367

View file

@ -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",