diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-30 11:21:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-30 18:51:46 +0200 |
commit | 6104316fd50076d41039c33a5338b016e93259fe (patch) | |
tree | 4c2857fd5372a25836d0eafbd92bab0a73649068 /cppuhelper/source/shlib.cxx | |
parent | 8dbf87595ece3db6c98d34b97e10276bf588fd73 (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: If4f035fef1e13780b6ce14477ccb2bd7b0eab133
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166829
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'cppuhelper/source/shlib.cxx')
-rw-r--r-- | cppuhelper/source/shlib.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx index b6885cbed770..c1a66ae66704 100644 --- a/cppuhelper/source/shlib.cxx +++ b/cppuhelper/source/shlib.cxx @@ -248,7 +248,7 @@ void cppuhelper::detail::loadSharedLibComponentFactory( assert(constructor.isEmpty() || !environment.isEmpty()); assert( (constructorFunction == nullptr && constructor.isEmpty()) - || !*constructorFunction); + || (constructorFunction && !*constructorFunction)); assert(factory != nullptr && !factory->is()); #if defined DISABLE_DYNLOADING assert(!environment.isEmpty()); |