[Libreoffice-commits] core.git: sal/rtl

Stephan Bergmann sbergman at redhat.com
Mon Feb 10 00:31:08 PST 2014


 sal/rtl/ustring.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ff5a48439c7975314e48056092baafa9a6359f9a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 10 09:30:24 2014 +0100

    Do not do RTL_LOG_STRING_NEW on null pointer
    
    Change-Id: Ie972599650620324fa7af5ed2b2843bfc1f34c43

diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx
index 3599a92..d31d6bc 100644
--- a/sal/rtl/ustring.cxx
+++ b/sal/rtl/ustring.cxx
@@ -493,9 +493,9 @@ void SAL_CALL rtl_uString_newFromAscii( rtl_uString** ppThis,
             pCharStr++;
         }
         while ( *pCharStr );
-    }
 
-    RTL_LOG_STRING_NEW( *ppThis );
+        RTL_LOG_STRING_NEW( *ppThis );
+    }
 }
 
 void SAL_CALL rtl_uString_newFromCodePoints(


More information about the Libreoffice-commits mailing list