diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-30 12:30:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-30 15:26:07 +0100 |
commit | ca03d495a0d8847366ab041ca8a3ac8f6de93c4e (patch) | |
tree | 1247a46c2444d1d36be259ec15cbbfb5228ffc87 /xmlreader/source/xmlreader.cxx | |
parent | ac7f1147b7d2c9ddb2b2cf12ef0ea9f45c315e8a (diff) |
coverity#708727 Uninitialized pointer field
Change-Id: I816f7e239f83c35666101aac057912dd7e65ecff
Diffstat (limited to 'xmlreader/source/xmlreader.cxx')
-rw-r--r-- | xmlreader/source/xmlreader.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmlreader/source/xmlreader.cxx b/xmlreader/source/xmlreader.cxx index 81e7a381b5ff..0d49c426f383 100644 --- a/xmlreader/source/xmlreader.cxx +++ b/xmlreader/source/xmlreader.cxx @@ -70,8 +70,9 @@ XmlReader::XmlReader(char const *sStr, size_t nLength) XmlReader::XmlReader(OUString const & fileUrl) SAL_THROW(( - css::container::NoSuchElementException, css::uno::RuntimeException)): - fileUrl_(fileUrl) + css::container::NoSuchElementException, css::uno::RuntimeException)) + : fileUrl_(fileUrl) + , fileHandle_(0) { oslFileError e = osl_openFile( fileUrl_.pData, &fileHandle_, osl_File_OpenFlag_Read); |