WaE: C6011 Dereferencing NULL pointer warnings

add some asserts for msvc

Change-Id: I3b024b9c1a3160a963ba77ad7313767f2c0a29ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166920
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2024-04-30 13:39:50 +02:00
parent 9fe1b7c53d
commit 51407b6f8d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -106,6 +106,7 @@ bool getArgument(
if (delimiter == nullptr) {
badUsage();
}
assert(delimiter && "badUsage exits otherwise");
*delimiter = true;
return false;
}
+1
View File
@@ -62,6 +62,7 @@ OUString getArgumentUri(sal_uInt32 argument, bool * entities) {
if (entities == nullptr) {
badUsage();
}
assert(entities && "badUsage exits otherwise");
*entities = true;
} else if (entities != nullptr) {
*entities = false;