summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-01-14 13:53:03 +0200
committerTor Lillqvist <tml@collabora.com>2014-01-14 14:51:55 +0200
commit9e5695543498b71780e73fcf5c18e93487fbd100 (patch)
tree2860c9bb26117f6ff057dc86ae7eed0c9741a594 /extensions/source
parent7be6262439c8f34ae083a6964f8380c4ffeaeec8 (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/source')
-rw-r--r--extensions/source/macosx/spotlight/OOoMetaDataParser.m2
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];
}
}