summaryrefslogtreecommitdiffstats
path: root/xmlreader
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-30 12:30:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-30 15:26:07 +0100
commitca03d495a0d8847366ab041ca8a3ac8f6de93c4e (patch)
tree1247a46c2444d1d36be259ec15cbbfb5228ffc87 /xmlreader
parentcoverity#705024 Dereference after null check (diff)
downloadcore-ca03d495a0d8847366ab041ca8a3ac8f6de93c4e.tar.gz
core-ca03d495a0d8847366ab041ca8a3ac8f6de93c4e.zip
coverity#708727 Uninitialized pointer field
Change-Id: I816f7e239f83c35666101aac057912dd7e65ecff
Diffstat (limited to 'xmlreader')
-rw-r--r--xmlreader/source/xmlreader.cxx5
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);