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:
parent
e0b87bf9a3
commit
db68bf7859
@ -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");
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user