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

Eike Rathke erack at redhat.com
Mon Aug 22 11:15:43 UTC 2016


 desktop/source/deployment/registry/component/dp_component.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit db4574f0bc4cc919e784a9efbd3968bb78996e30
Author: Eike Rathke <erack at redhat.com>
Date:   Mon Aug 22 13:12:32 2016 +0200

    clearly we want to match "-env:" only at arg start, not as substring anywhere
    
    Change-Id: Id7238329118ac6f9ddf58b31c6477be002895307

diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx
index 1036ab0..243f48a 100644
--- a/desktop/source/deployment/registry/component/dp_component.cxx
+++ b/desktop/source/deployment/registry/component/dp_component.cxx
@@ -76,7 +76,7 @@ typedef ::std::vector< ::std::pair<OUString, OUString> > t_stringpairvec;
     {
         OUString arg;
         osl_getCommandArg(i, &arg.pData);
-        if (arg.match("-env:"))
+        if (arg.startsWith("-env:"))
             ret.push_back(arg);
     }
     return ret;


More information about the Libreoffice-commits mailing list