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

Kohei Yoshida kohei.yoshida at gmail.com
Mon Aug 19 13:47:14 PDT 2013


 sc/source/ui/unoobj/scdetect.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e7164ec2858a25a9f57fac199132dea0e70a8555
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Mon Aug 19 16:47:42 2013 -0400

    Return on NULL right away, to avoid null dereferencing below.
    
    Change-Id: I17b45a5fb6ac5d30be5d3575fec76a61662decdf

diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index bdc9ba8..159b52c 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -632,7 +632,7 @@ OUString SAL_CALL ScFilterDetect::detect( uno::Sequence<beans::PropertyValue>& l
     }
 
     if (!pFilter)
-        aTypeName.Erase();
+        return OUString();
 
     if (nIndexOfFilterName == -1)
     {


More information about the Libreoffice-commits mailing list