diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-01-14 13:53:03 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-01-14 14:51:55 +0200 |
commit | 9e5695543498b71780e73fcf5c18e93487fbd100 (patch) | |
tree | 2860c9bb26117f6ff057dc86ae7eed0c9741a594 /extensions | |
parent | 7be6262439c8f34ae083a6964f8380c4ffeaeec8 (diff) |
fdo#47689: Avoid crashing mdworker: Don't use uninitialized variable
It's the isCustom field that should be checked to see whether the
customAttribute field has been assigned or not.
Change-Id: I5d2af26b675ab0cbc0e1844eb98ebaf5145eb73d
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/macosx/spotlight/OOoMetaDataParser.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/macosx/spotlight/OOoMetaDataParser.m b/extensions/source/macosx/spotlight/OOoMetaDataParser.m index a6ce40ac1368..0f1bad9a056d 100644 --- a/extensions/source/macosx/spotlight/OOoMetaDataParser.m +++ b/extensions/source/macosx/spotlight/OOoMetaDataParser.m @@ -172,7 +172,7 @@ static NSDictionary *metaXML2MDIKeys; } // cleanup part 1 [textCurrentElement release]; - if (customAttribute != nil) { + if (isCustom == YES) { [customAttribute release]; } } |