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

New commits:
commit d0c94302b89a99c31a7a76f07c58b29638ac3d0f
Author: Julien Nabet <[email protected]>
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() );
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to