diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-11 10:46:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-11 12:37:08 +0100 |
commit | 56170eb5c5d052377d3b5d53b0e45f44fed83850 (patch) | |
tree | 4b0301f82d9b0facfbbf463cf1c44964266f6032 /bridges | |
parent | 521a9f6f76a135928806355e981eeb7860b2fbe7 (diff) |
#i112681# make bridges match remotebridges
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/remote/context/context.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridges/source/remote/context/context.cxx b/bridges/source/remote/context/context.cxx index 770725f9d23f..edf0eed6d8fd 100644 --- a/bridges/source/remote/context/context.cxx +++ b/bridges/source/remote/context/context.cxx @@ -267,6 +267,10 @@ rtl_uString ** ContextAdmin::getConnectionList( ::osl::MutexGuard guard( m_mutex ); *pnStringCount = m_mapContext.size(); + + if (*pnStringCount == 0) + return NULL; + rtl_uString **ppReturn = ( rtl_uString ** ) memAlloc( sizeof( rtl_uString * ) * m_mapContext.size() ); memset( ppReturn , 0 , sizeof( rtl_uString * ) * m_mapContext.size() ); |