[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Nov 10 11:19:43 UTC 2018
sw/source/core/unocore/unotbl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 577b5fd81be3819354cad6bb234a988f264ae599
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Fri Nov 9 01:19:41 2018 +0300
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Sat Nov 10 12:19:23 2018 +0100
tdf#120703 PVS: check proper pointer (possible nullprt dereference)
V547 Expression 'pFormat' is always true.
Change-Id: I11a32f903a08296fb9e6732032b7c7f00cb8aced
Reviewed-on: https://gerrit.libreoffice.org/63233
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index ee8f530abb4e..0d99f14f1b26 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -3564,7 +3564,7 @@ uno::Any SAL_CALL SwXCellRange::getPropertyValue(const OUString& rPropertyName)
SwFormatColl *const pTmpFormat =
SwUnoCursorHelper::GetCurTextFormatColl(*m_pImpl->m_pTableCursor, false);
OUString sRet;
- if(pFormat)
+ if (pTmpFormat)
sRet = pTmpFormat->GetName();
aRet <<= sRet;
}
More information about the Libreoffice-commits
mailing list