[Libreoffice-commits] core.git: sot/source

Julien Nabet serval2412 at yahoo.fr
Tue Mar 26 11:13:28 PDT 2013


 sot/source/sdstor/stgdir.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit daac7e3828e97d325e11b165a04b58ff4f96b131
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Mar 26 19:11:05 2013 +0100

    coverity#982310 Logically dead code
    
    Change-Id: Iee6d57bc9900d4c88d614eefe6878eaca6f5e2c3

diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index dedb7cd..fc110ad 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 );
 }


More information about the Libreoffice-commits mailing list