summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-09 11:52:19 +0300
committerTor Lillqvist <tml@collabora.com>2013-10-09 13:46:43 +0300
commit45ffc53a905aa4b4890d862a070a2d6e9bce8546 (patch)
treea1ce4900526b904ea059df92bb877d64d5701abf /sal
parent8fe9a68f1a10f9bca66c8b959337fd2a522a2f26 (diff)
Revert "Don't ignore -env: command line parameters in some cases"
This was the wrong way to fix the problem. The root cause was a static initialiser in the OpenCL code, and that code should not even have been built for iOS. This reverts commit 261f1439e5516f6d60317a675d261af330a9a74c.
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/bootstrap.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index 5ee61b0a19ba..a4169b3b66b9 100644
--- a/sal/rtl/bootstrap.cxx
+++ b/sal/rtl/bootstrap.cxx
@@ -199,18 +199,9 @@ static sal_Bool getFromCommandLineArgs(
}
rtl_uString_release( pArg );
}
- // If osl_setCommandArgs() has not been called yet (for
- // instance, if this gets called from a static initialiser),
- // don't initialise pNameValueList, as that would cause the
- // code to ignore any -env:FOO=BAR on the command line once
- // osl is told about it.
- if( nArgCount > 0 )
- pNameValueList = &nameValueList;
+ pNameValueList = &nameValueList;
}
- if( ! pNameValueList )
- return sal_False;
-
sal_Bool found = sal_False;
for( NameValueList::iterator ii = pNameValueList->begin() ;