diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 14:45:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 14:46:11 +0000 |
commit | 07bcb812c95617ee543e51568cbc8fa83fed243e (patch) | |
tree | 3c93ed72accf50d008f806ad41a7208df04b078f | |
parent | f9b87a2e50e7cc46a19b5fdee61e14d53550393d (diff) |
coverity#704055 Unchecked return value
Change-Id: Ie0c8155955ba975c913738adf40ef6ec092adba0
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index a586b9af226e..25f499ab407a 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -3671,8 +3671,8 @@ bool SwWW8ImplReader::ReadChar(long nPosCp, long nCpOfs) { WW8_FC nPos; void *pData; - pTest->Get(nPos, pData); - sal_uInt32 nData = SVBT32ToUInt32(*static_cast<SVBT32*>(pData)); + sal_uInt32 nData = pTest->Get(nPos, pData) ? SVBT32ToUInt32(*static_cast<SVBT32*>(pData)) + : 0; if (nData & 0x2) // Might be how it works { TabCellEnd(); |