diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-07-31 14:15:09 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-07-31 14:45:38 +0200 |
commit | 19310906553d846104cff9fe7df54d40068ddbc0 (patch) | |
tree | 2b2c5fd9a558a1680923ab5947722e1b153c449a | |
parent | 72edadf15dbbabade4a9c2c9be88bf844a8f6fb4 (diff) |
filter: valgrind uninitialized warning in filter_met_test
Change-Id: Iaa6a6ed0ef1b9ca3b3f72706ec3934c6c4a93322
-rw-r--r-- | filter/source/graphicfilter/ios2met/ios2met.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx b/filter/source/graphicfilter/ios2met/ios2met.cxx index e58a069ea236..f2e0b45ba96c 100644 --- a/filter/source/graphicfilter/ios2met/ios2met.cxx +++ b/filter/source/graphicfilter/ios2met/ios2met.cxx @@ -789,10 +789,10 @@ sal_uLong OS2METReader::ReadLittleEndian3BytesLong() long OS2METReader::ReadCoord(bool b32) { - sal_Int32 l; + sal_Int32 l(0); if (b32) pOS2MET->ReadInt32( l ); - else { short s;pOS2MET->ReadInt16( s ); l=(sal_Int32)s; } + else { short s(0); pOS2MET->ReadInt16( s ); l = static_cast<sal_Int32>(s); } return l; } |