From 9e5695543498b71780e73fcf5c18e93487fbd100 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 14 Jan 2014 13:53:03 +0200 Subject: 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 --- extensions/source/macosx/spotlight/OOoMetaDataParser.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') 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]; } } -- cgit v1.2.3