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:
@@ -142,7 +142,7 @@ bool readArgument(
|
|||||||
{
|
{
|
||||||
if (*pIndex < osl_getCommandArgCount())
|
if (*pIndex < osl_getCommandArgCount())
|
||||||
{
|
{
|
||||||
OSL_ASSERT( pValue != nullptr );
|
assert(pValue != nullptr);
|
||||||
osl_getCommandArg( *pIndex, &pValue->pData );
|
osl_getCommandArg( *pIndex, &pValue->pData );
|
||||||
dp_misc::TRACE(__FILE__ ": argument value: "
|
dp_misc::TRACE(__FILE__ ": argument value: "
|
||||||
+ *pValue + "\n");
|
+ *pValue + "\n");
|
||||||
|
@@ -67,7 +67,7 @@ inline bool readOption(
|
|||||||
bool * flag, OptionInfo const * option_info, sal_uInt32 * pIndex )
|
bool * flag, OptionInfo const * option_info, sal_uInt32 * pIndex )
|
||||||
{
|
{
|
||||||
if (isOption( option_info, pIndex )) {
|
if (isOption( option_info, pIndex )) {
|
||||||
OSL_ASSERT( flag != nullptr );
|
assert(flag != nullptr);
|
||||||
*flag = true;
|
*flag = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user