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

Julien Nabet serval2412 at yahoo.fr
Sat Mar 30 11:27:39 PDT 2013


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

New commits:
commit d0c94302b89a99c31a7a76f07c58b29638ac3d0f
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Mar 30 19:25:20 2013 +0100

    coverity#440717 Dereference after null check
    
    Change-Id: I2ff581a72aa66bff8943d31499013b31e360333b

diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 130043e..52057a4 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -337,7 +337,7 @@ sal_Bool SotStorageStream::Commit()
 
 sal_Bool SotStorageStream::Revert()
 {
-    if( !pOwnStm )
+    if( pOwnStm )
     {
         pOwnStm->Revert();
         SetError( pOwnStm->GetError() );


More information about the Libreoffice-commits mailing list