diff --git a/src/kits/tracker/MountMenu.cpp b/src/kits/tracker/MountMenu.cpp index 80576a25e3..ba32066f8a 100644 --- a/src/kits/tracker/MountMenu.cpp +++ b/src/kits/tracker/MountMenu.cpp @@ -98,7 +98,7 @@ bool AddMenuItemVisitor::Visit(BPartition *partition, int32 level) { if (!partition->ContainsFileSystem()) - return NULL; + return false; // get name (and eventually the type) BString name = partition->ContentName(); @@ -107,7 +107,7 @@ AddMenuItemVisitor::Visit(BPartition *partition, int32 level) if (name.Length() == 0) { const char *type = partition->ContentType(); if (type == NULL) - return NULL; + return false; name = "(unnamed "; name << type;