diff options
-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); |