From 4e722de38fc59ff620801672c421b27c0f501b9d Mon Sep 17 00:00:00 2001 From: Tyler Dauwalder Date: Tue, 24 Sep 2002 05:29:32 +0000 Subject: [PATCH] Tidied up a couple of minor oversights. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1150 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/mime/SupportingApps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/storage/mime/SupportingApps.cpp b/src/kits/storage/mime/SupportingApps.cpp index 87dfa2e616..b46b1d9c0a 100644 --- a/src/kits/storage/mime/SupportingApps.cpp +++ b/src/kits/storage/mime/SupportingApps.cpp @@ -50,7 +50,7 @@ SupportingApps::~SupportingApps() /*! \brief Returns a list of signatures of supporting applications for the given type in the pre-allocated \c BMessage pointed to by \c apps. - See \c BMimeType::GetSupportingApps(BMessage*) for more information. + See \c BMimeType::GetSupportingApps() for more information. */ status_t SupportingApps::GetSupportingApps(const char *type, BMessage *apps) @@ -248,7 +248,7 @@ SupportingApps::AddSupportingApp(const char *type, const char *app) status_t SupportingApps::RemoveSupportingApp(const char *type, const char *app) { - status_t err = app ? B_OK : B_BAD_VALUE; + status_t err = type && app ? B_OK : B_BAD_VALUE; if (!err) fSupportingApps[type].erase(app); return err;