diff --git a/src/kits/storage/mime/AssociatedTypes.cpp b/src/kits/storage/mime/AssociatedTypes.cpp index 8b67579423..a8d966d0e7 100644 --- a/src/kits/storage/mime/AssociatedTypes.cpp +++ b/src/kits/storage/mime/AssociatedTypes.cpp @@ -195,10 +195,9 @@ AssociatedTypes::SetFileExtensions(const char *type, const BMessage *extensions) std::set oldExtensions; std::set &newExtensions = fFileExtensions[type]; // Make a copy of the previous extensions - if (!err) + if (!err) { oldExtensions = newExtensions; - if (!err) { // Read through the list of new extensions, creating the new // file extensions list and adding the type as an associated type // for each extension