summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-30 11:21:04 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-30 18:51:46 +0200
commit6104316fd50076d41039c33a5338b016e93259fe (patch)
tree4c2857fd5372a25836d0eafbd92bab0a73649068 /cppuhelper
parent8dbf87595ece3db6c98d34b97e10276bf588fd73 (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')
-rw-r--r--cppuhelper/source/shlib.cxx2
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());