summaryrefslogtreecommitdiff
path: root/helpcompiler/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-30 20:41:27 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-01 09:17:34 +0200
commited3ce7bfeb2a22c17071fd02f61fa2c819a35c89 (patch)
tree040a30bde7a2e45568e58897823d4b5175453b80 /helpcompiler/source
parentfdbc8d1374e2a9fde6c99acbe6923a277695a0a3 (diff)
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I6eb8e490e878349f2063910e0cbc901aa7a6d524 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166942 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'helpcompiler/source')
-rw-r--r--helpcompiler/source/HelpLinker.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
index b99061d0dd7f..70b9af1fe4b4 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -709,7 +709,9 @@ void HelpLinker::main( std::vector<std::string> &args,
}
}
else
- { //called from extension manager
+ {
+ assert(pExtensionPath);
+ //called from extension manager
extensionPath = *pExtensionPath;
sourceRoot = fs::path(extensionPath);
extensionDestination = *pDestination;