summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-16 17:44:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-11-16 20:24:51 +0100
commitd6f00ac943fbcdc56e828db0c9ff96337c1e74f7 (patch)
treefd7ac38d6bdf7a203c9919fe477815b09e7cba24
parent31fd3641b363c81ab23e10e6425a39e27a224c3d (diff)
cid#1448453 Untrusted value as argument
coverity doesn't warn about XclImpString::ReadFormats Change-Id: Ide6285f39fed09a1767c2a2272f30ec213a20106 Reviewed-on: https://gerrit.libreoffice.org/82993 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/excel/xistring.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xistring.cxx b/sc/source/filter/excel/xistring.cxx
index 4b06f3447978..096507ba8351 100644
--- a/sc/source/filter/excel/xistring.cxx
+++ b/sc/source/filter/excel/xistring.cxx
@@ -80,7 +80,7 @@ void XclImpString::Read( XclImpStream& rStrm, XclStrFlags nFlags )
maString = rStrm.ReadRawUniString( nChars, b16Bit );
// --- formatting ---
- if( nRunCount > 0 )
+ if (nRunCount)
ReadFormats( rStrm, maFormats, nRunCount );
// --- extended (FarEast) information ---