summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/qa/unit/filters-test.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/qa/unit/filters-test.cxx b/sd/qa/unit/filters-test.cxx
index 441be8e1ad2b..1936280e3b48 100644
--- a/sd/qa/unit/filters-test.cxx
+++ b/sd/qa/unit/filters-test.cxx
@@ -95,15 +95,15 @@ FileFormat aFileFormats[] = {
::sd::DrawDocShellRef SdFiltersTest::loadURL( const rtl::OUString &rURL )
{
- FileFormat *pFmt;
+ FileFormat *pFmt = NULL;
for (size_t i = 0; i < SAL_N_ELEMENTS (aFileFormats); i++)
{
pFmt = aFileFormats + i;
- if (pFmt->pName && rURL.endsWithIgnoreAsciiCaseAsciiL (pFmt->pName, strlen (pFmt->pName)))
+ if (pFmt->pName && rURL.endsWithIgnoreAsciiCaseAsciiL (pFmt->pName, strlen (pFmt->pName)))
break;
}
- CPPUNIT_ASSERT_MESSAGE( "missing filter info", pFmt->pName != NULL );
+ CPPUNIT_ASSERT_MESSAGE( "missing filter info", pFmt && pFmt->pName != NULL );
sal_uInt32 nFormat = 0;
if (pFmt->nFormatType)