summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-08 20:26:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-08 20:28:03 +0000
commitc8117c46f1e4f9aaf6245d5d68f26d5656116b39 (patch)
tree544979bbccfe8278a03473e719d4d482c0612576 /sw
parenta506455b0e5f72d7ebbcfb53a5ea70c05ded485c (diff)
coverity#708413 Uninitialized scalar field
Change-Id: Id4ffee405f4047845223a53595f08c5bcd86b52a
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doccomp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index 990d645d7364..d36b16c0b616 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -435,7 +435,7 @@ void CompareData::CheckForChangesInLine( const CompareData& ,
}
Hash::Hash( sal_uLong nSize )
- : nCount( 1 )
+ : nCount(1)
{
static const sal_uLong primes[] =
@@ -471,6 +471,7 @@ static const sal_uLong primes[] =
pDataArr[0].nNext = 0;
pDataArr[0].nHash = 0,
pDataArr[0].pLine = 0;
+ nPrime = primes[0];
for( i = 0; primes[i] < nSize / 3; i++)
if( !primes[i] )