summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-26 19:11:05 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-03-26 19:11:05 +0100
commitdaac7e3828e97d325e11b165a04b58ff4f96b131 (patch)
tree7f8555843198da115474aa8c37570f90100d0ebd /sot
parent0e6a5bf1d9f4106af44996548ab0924ce7e5648c (diff)
coverity#982310 Logically dead code
Change-Id: Iee6d57bc9900d4c88d614eefe6878eaca6f5e2c3
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgdir.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index dedb7cd3f690..fc110ad35b0b 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -970,7 +970,7 @@ void* StgDirStrm::GetEntry( sal_Int32 n, bool bDirty )
return NULL;
n *= STGENTRY_SIZE;
- if( n < 0 && n >= nSize )
+ if( n >= nSize )
return NULL;
return GetPtr( n, true, bDirty );
}