diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-07 20:53:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-08 12:02:36 +0000 |
commit | 91b5497f8a9a765af8fa3affa437ef1950783bfb (patch) | |
tree | 17ab1c3e139bb3ad0f3f995f07fa9818a3461687 /svtools | |
parent | e73b23562911c15e9996eea70d3aff4983a2018c (diff) |
just in case
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/wmf/winwmf.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/filter/wmf/winwmf.cxx b/svtools/source/filter/wmf/winwmf.cxx index 13f8feef70f9..a9c29133d786 100644 --- a/svtools/source/filter/wmf/winwmf.cxx +++ b/svtools/source/filter/wmf/winwmf.cxx @@ -1099,9 +1099,10 @@ sal_Bool WMFReader::ReadHeader() return false; if (nMetaKey != 0x00090001) { - sal_uInt16 aNextWord; + sal_uInt16 aNextWord(0); *pWMF >> aNextWord; - if (aNextWord != 0x09) { + if (aNextWord != 0x09) + { pWMF->SetError( SVSTREAM_FILEFORMAT_ERROR ); return false; } |