WaE: C6011 Dereferencing NULL pointer warnings

Change-Id: Iaef14644b8d9fa0c26de39871e9352d5d79ebb08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167248
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-05-06 20:25:58 +01:00
parent e0b87bf9a3
commit db68bf7859
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ bool readArgument(
{
if (*pIndex < osl_getCommandArgCount())
{
OSL_ASSERT( pValue != nullptr );
assert(pValue != nullptr);
osl_getCommandArg( *pIndex, &pValue->pData );
dp_misc::TRACE(__FILE__ ": argument value: "
+ *pValue + "\n");

View File

@ -67,7 +67,7 @@ inline bool readOption(
bool * flag, OptionInfo const * option_info, sal_uInt32 * pIndex )
{
if (isOption( option_info, pIndex )) {
OSL_ASSERT( flag != nullptr );
assert(flag != nullptr);
*flag = true;
return true;
}