diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-20 12:39:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-21 14:25:43 +0000 |
commit | b4d3e2f99cf8208dcda279ee8d9a45557b806ff9 (patch) | |
tree | 580c99feb387fe462dc3d8bc0dcc4409a1a45a76 /sd | |
parent | 8f82bccf26d14d3ad4a64739edd9ba23c124b8ad (diff) |
WaE: pFmt may be uninitialized
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/filters-test.cxx | 6 |
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) |