diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-07 10:43:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-07 10:44:01 +0200 |
commit | 464fa1b40f5e4f5f7dcee8ba73243b64042ce69e (patch) | |
tree | 60b1d9d8a10234d70b16bb5f2b7b74cbc9dd4fd9 /filter | |
parent | bc4176fa43dc8047774a11dfb5b913e6adce2252 (diff) |
cid#1404877: Check return value
Change-Id: I6199a7604f8c978a6ebe3537f7df322f32d95c77
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xmlfilterdetect/filterdetect.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/xmlfilterdetect/filterdetect.cxx b/filter/source/xmlfilterdetect/filterdetect.cxx index bf6182a6a2b0..9c1d044c0964 100644 --- a/filter/source/xmlfilterdetect/filterdetect.cxx +++ b/filter/source/xmlfilterdetect/filterdetect.cxx @@ -55,8 +55,8 @@ bool IsMediaTypeXML( const OUString& mediaType ) if (!mediaType.isEmpty()) { OUString sType, sSubType; - INetContentTypes::parse(mediaType, sType, sSubType); - if (sType == "application") + if (INetContentTypes::parse(mediaType, sType, sSubType) + && sType == "application") { // RFC 3023: application/xml; don't detect text/xml if (sSubType == "xml") |