diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-10-20 16:31:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-10-20 23:04:11 +0200 |
commit | 10ce581cfc7a3fd74200910291a0fb916180e772 (patch) | |
tree | c2668b7c47347c9301058bec499b002e6751fa96 /sal/osl/w32/process.cxx | |
parent | b1eae75f53ad2ee88192241776ffa7d29725301a (diff) |
osl_getCommandArgCount can be called w/o prior osl_setCommandArgs.
...e.g., with "import uno" in a stand-alone pyhton process (where it
is hopefully harmless that UNO does not get access to any -env
command line args).
Diffstat (limited to 'sal/osl/w32/process.cxx')
-rw-r--r-- | sal/osl/w32/process.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sal/osl/w32/process.cxx b/sal/osl/w32/process.cxx index 718f293cac1b..18eecabc3cd4 100644 --- a/sal/osl/w32/process.cxx +++ b/sal/osl/w32/process.cxx @@ -343,7 +343,11 @@ sal_uInt32 SAL_CALL osl_getCommandArgCount(void) sal_uInt32 result = 0; osl_acquireMutex (*osl_getGlobalMutex()); - OSL_ASSERT(g_command_args.m_nCount > 0); + if (g_command_args.m_nCount == 0) { + OSL_TRACE( + OSL_LOG_PREFIX + "osl_getCommandArgCount w/o prior call to osl_setCommandArgs"); + } if (g_command_args.m_nCount > 0) { /* We're not counting argv[0] here. */ |